usb: modify the fifth compliance test partner

PD#163486: usb: modify the fifth compliance test parnter

Change-Id: Ic30f709ca278413576879b4ff5acc789f72c74d8
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
This commit is contained in:
Jianxin Qin
2018-05-22 17:33:24 +08:00
committed by Yixun Lan
parent 348e23ccb5
commit 8f35a11fa4

View File

@@ -931,8 +931,6 @@ static void xhci_port_set_test_mode(struct xhci_hcd *xhci,
temp |= test_mode << PORT_TEST_MODE_SHIFT;
writel(temp, port_array[wIndex] + PORTPMSC);
xhci->test_mode = test_mode;
if (test_mode == TEST_FORCE_EN)
xhci_start(xhci);
}
int xhci_disable_slot(struct xhci_hcd *xhci, struct xhci_command *command,
@@ -1422,13 +1420,14 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
if (test_mode > 6 || test_mode < 1)
goto error;
if ((test_mode >= 1) && (test_mode <= 5))
if ((test_mode >= 1) && (test_mode <= 4))
retval = xhci_enter_test_mode(xhci,
test_mode, wIndex);
else if (test_mode == 6)
retval = xhci_test_suspend_resume(hcd, wIndex);
test_mode, wIndex);
else if (test_mode == 5)
xhci_port_set_test_mode(xhci,
test_mode, wIndex);
else
retval = 0;
retval = xhci_test_suspend_resume(hcd, wIndex);
break;
#endif
default: