]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: always set 32 bit dma mask
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 22 Jul 2015 18:16:45 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 03:51:40 +0000 (20:51 -0700)
The device is limited to 32 bit address space.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index c82bf48499f078f3e2ffab23d38e4419950613fa..c97353bfab72346cd1344d39117fe3704210b792 100644 (file)
@@ -1747,6 +1747,12 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
                return -ENODEV;
        }
 
+       if (dma_set_mask(&pcid->dev, DMA_BIT_MASK(32))) {
+               dev_err(&pcid->dev, ": Failed to set dma 32 bit mask\n");
+               device_free_info(priv);
+               return -ENODEV;
+       }
+
        INIT_WORK(&priv->interrupt_work, vnt_interrupt_work);
 
        /* do reset */