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

USB: EHCI: Tegra: Fix wrong register definition

Fix the issue that EHCI registers, hostpc[0] and usbmode_ex,
are not correctly accessed on Tegra3 platform.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jim Lin and committed by
Greg Kroah-Hartman
45c2da62 8d733e26

+3 -3
+3 -3
include/linux/usb/ehci_def.h
··· 171 171 #define USBMODE_CM_HC (3<<0) /* host controller mode */ 172 172 #define USBMODE_CM_IDLE (0<<0) /* idle state */ 173 173 174 - u32 reserved4[7]; 174 + u32 reserved4[6]; 175 175 176 176 /* Moorestown has some non-standard registers, partially due to the fact that 177 177 * its EHCI controller has both TT and LPM support. HOSTPCx are extensions to 178 178 * PORTSCx 179 179 */ 180 180 /* HOSTPC: offset 0x84 */ 181 - u32 hostpc[0]; /* HOSTPC extension */ 181 + u32 hostpc[1]; /* HOSTPC extension */ 182 182 #define HOSTPC_PHCD (1<<22) /* Phy clock disable */ 183 183 #define HOSTPC_PSPD (3<<25) /* Port speed detection */ 184 184 185 - u32 reserved5[17]; 185 + u32 reserved5[16]; 186 186 187 187 /* USBMODE_EX: offset 0xc8 */ 188 188 u32 usbmode_ex; /* USB Device mode extension */