usb: ehci-omap: fix tll channel enable mask
authorAnand Gadiyar <gadiyar@ti.com>
Mon, 13 Dec 2010 16:30:34 +0000 (22:00 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Dec 2010 21:36:12 +0000 (13:36 -0800)
The TLL channel enable code searches for the wrong mask, and
could end up enabling the wrong port. Fix this.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-omap.c

index 0374eb4..680f2ef 100644 (file)
@@ -90,9 +90,9 @@
 #define        OMAP_TLL_ULPI_SCRATCH_REGISTER(num)             (0x816 + 0x100 * num)
 
 #define OMAP_TLL_CHANNEL_COUNT                         3
-#define OMAP_TLL_CHANNEL_1_EN_MASK                     (1 << 1)
-#define OMAP_TLL_CHANNEL_2_EN_MASK                     (1 << 2)
-#define OMAP_TLL_CHANNEL_3_EN_MASK                     (1 << 4)
+#define OMAP_TLL_CHANNEL_1_EN_MASK                     (1 << 0)
+#define OMAP_TLL_CHANNEL_2_EN_MASK                     (1 << 1)
+#define OMAP_TLL_CHANNEL_3_EN_MASK                     (1 << 2)
 
 /* UHH Register Set */
 #define        OMAP_UHH_REVISION                               (0x00)