set has_hostpc when we have has_lpm and has_tt. This is needed because has_tt and has_lpm have incompatible register layout for port register : has_lpm #define PORT_LPM (1<<9) /* LPM transaction */ #define PORT_DEV_ADDR (0x7f<<25) /* device address */ #define PORT_SSTS (0x3<<23) /* suspend status */ has_tt (without has_hostpc) 9 HSP (high speed status) 23 PHCD (phy clock disable) 24 PFSC (force speed) 26-27 (port speed) Signed-off-by: Matthieu CASTET <matthieu.castet@xxxxxxxxxx> Reviewed-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> --- drivers/usb/host/ehci-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 800be38..9de7ba4 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -718,6 +718,8 @@ static int ehci_init(struct usb_hcd *hcd) hird = 0; } temp |= hird << 24; + if (ehci_is_TDI(ehci)) + ehci->has_hostpc = 1; } ehci->command = temp; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html