]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: bcma: remove chip id check
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 11 Jun 2015 20:57:35 +0000 (22:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2015 22:43:34 +0000 (15:43 -0700)
I have never seen any bcma device with an USB host core which was not a
SoC, the bcma devices have an USB device core with a different core id.
Some SoC have IDs with 47XX and 53XX in decimal form which would be
rejected by this check. Instead of fixing this check just remove it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/bcma-hcd.c

index 526cfab41d5f7022b4c62c3754a5eb69a30240f3..976b4e10ee6593bcf7f6d738fed1c3993e1e9d2a 100644 (file)
@@ -214,16 +214,11 @@ err_alloc:
 static int bcma_hcd_probe(struct bcma_device *dev)
 {
        int err;
-       u16 chipid_top;
        u32 ohci_addr;
        struct bcma_hcd_device *usb_dev;
        struct bcma_chipinfo *chipinfo;
 
        chipinfo = &dev->bus->chipinfo;
-       /* USBcores are only connected on embedded devices. */
-       chipid_top = (chipinfo->id & 0xFF00);
-       if (chipid_top != 0x4700 && chipid_top != 0x5300)
-               return -ENODEV;
 
        /* TODO: Probably need checks here; is the core connected? */