]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
CBUS: turn off tahvo-usb OTG idle mode during enabling
authorImre Deak <imre.deak@solidboot.com>
Sun, 6 Aug 2006 17:09:40 +0000 (20:09 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Mon, 7 Aug 2006 11:00:32 +0000 (14:00 +0300)
Fix a wake-from-sleep bug where OTG was not taken out from
idle mode.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
drivers/cbus/tahvo-usb.c

index 3fcb6ff95aa8888826c786700ba348c2210c070f..9922ae0015f5f35c7d1f7c0aca759b24f03c7eb6 100644 (file)
@@ -155,6 +155,9 @@ static int omap_otg_init(void)
                return -ENODEV;
        }
 #endif
+       OTG_SYSCON_1_REG &= ~OTG_IDLE_EN;
+       udelay(100);
+
        /* some of these values are board-specific... */
        OTG_SYSCON_2_REG |= OTG_EN
                /* for B-device: */