From: Tony Lindgren Date: Thu, 6 Sep 2007 01:45:00 +0000 (-0700) Subject: musb_hdrc: Fix tusb3.1 detection for newer chips X-Git-Tag: v2.6.23-omap1~80 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d849a9389e90b70260c4d128bc231136aed6f8e7;p=linux-2.6-omap-h63xx.git musb_hdrc: Fix tusb3.1 detection for newer chips Looks like the die ID can be >= 2 on tusb3.1 chips. Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index acbd163a8fc..fbb402c1164 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -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; }