Refactoring port power on/off related code into
a helper function xhci_set_power_on() which can
be reused when enabling test mode.
Signed-off-by: Guoqing Zhang
---
drivers/usb/host/xhci-hub.c | 64 ++---
1 file changed, 43 insertions(+), 21 deletions
Refactoring slot disable related code into a helper
function xhci_disable_slot() which can be used when
enabling test mode.
Signed-off-by: Guoqing Zhang
---
drivers/usb/host/xhci.c | 49 +++--
drivers/usb/host/xhci.h | 2 ++
2 files changed, 33
For usb2 ports, the port test mode Test_J_State, Test_K_State,
Test_Packet, Test_SE0_NAK and Test_Force_En can be enabled
as described in usb2 spec.
Signed-off-by: Guoqing Zhang
---
drivers/usb/host/xhci-hub.c | 84 +
drivers/usb/host/xhci.h | 2
Change the visability of xhci_start() so that it
can be used when enabling test mode.
Signed-off-by: Guoqing Zhang
---
drivers/usb/host/xhci.c | 2 +-
drivers/usb/host/xhci.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
For USB2 ports, the port test modes TEST_J_State, Test_K_State,
Test_Packet and Test_SE0_NAK can be enabled as described in USB2
spec.
Signed-off-by: Guoqing Zhang
---
drivers/usb/host/xhci-hub.c | 55 +++--
1 file changed, 53 insertions(+), 2 deletions