Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: ehci-omap: fix tll channel enable mask

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>

authored by

Anand Gadiyar and committed by
Greg Kroah-Hartman
6ef9fc65 a0c9e95d

+3 -3
+3 -3
drivers/usb/host/ehci-omap.c
··· 90 90 #define OMAP_TLL_ULPI_SCRATCH_REGISTER(num) (0x816 + 0x100 * num) 91 91 92 92 #define OMAP_TLL_CHANNEL_COUNT 3 93 - #define OMAP_TLL_CHANNEL_1_EN_MASK (1 << 1) 94 - #define OMAP_TLL_CHANNEL_2_EN_MASK (1 << 2) 95 - #define OMAP_TLL_CHANNEL_3_EN_MASK (1 << 4) 93 + #define OMAP_TLL_CHANNEL_1_EN_MASK (1 << 0) 94 + #define OMAP_TLL_CHANNEL_2_EN_MASK (1 << 1) 95 + #define OMAP_TLL_CHANNEL_3_EN_MASK (1 << 2) 96 96 97 97 /* UHH Register Set */ 98 98 #define OMAP_UHH_REVISION (0x00)