]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Fix tusb3.1 detection for newer chips
authorTony Lindgren <tony@atomide.com>
Thu, 6 Sep 2007 01:45:00 +0000 (18:45 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 6 Sep 2007 02:07:33 +0000 (19:07 -0700)
Looks like the die ID can be >= 2 on tusb3.1 chips.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010.c

index acbd163a8fcf94ccf761d43cbf8ca086337258be..fbb402c11647c10da7bada1b828eba5d59e24c91 100644 (file)
@@ -44,7 +44,7 @@ static u8 tusb_get_revision(struct musb *musb)
        if (TUSB_REV_MAJOR(rev) == 3) {
                die_id = TUSB_DIDR1_HI_CHIP_REV(musb_readl(tbase,
                                TUSB_DIDR1_HI));
-               if (die_id == TUSB_DIDR1_HI_REV_31)
+               if (die_id >= TUSB_DIDR1_HI_REV_31)
                        rev |= 1;
        }