[RAMEN9610-14474] [COMMON] usb: remove W/A code to avoid kernel panic
authorKisang Lee <kisang80.lee@samsung.com>
Wed, 17 Apr 2019 01:18:28 +0000 (10:18 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 22 Apr 2019 04:35:20 +0000 (13:35 +0900)
The W/A code for other AP could make kernel panic rarely.

Change-Id: Ic0b44fdcfc4d9c189d0fc37da2398043720424e7
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
drivers/usb/dwc3/gadget.c
drivers/usb/host/xhci-hub.c

index 84f6d3c1d4865b8b46fcf899404366169ea6cb8a..03da7751823efb99f020cd9c9226245e2eaa1415 100644 (file)
@@ -3336,10 +3336,6 @@ static void dwc3_gadget_suspend_interrupt(struct dwc3 *dwc,
 {
        enum dwc3_link_state next = evtinfo & DWC3_LINK_STATE_MASK;
 
-       /* WA for Lhotse U3 */
-       if (dwc->gadget.speed >= USB_SPEED_SUPER)
-               phy_ilbk(dwc->usb3_generic_phy);
-
        if (dwc->link_state != next && next == DWC3_LINK_STATE_U3)
                dwc3_suspend_gadget(dwc);
 
index 191dda5924751201ab20eb0bb10f3ab2bd40cfc8..8ab5f3bcb4eeee68f94fb77837eeeb8793cdb541 100644 (file)
@@ -1176,10 +1176,6 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                        temp = readl(port_array[wIndex]);
                        bus_state->suspended_ports |= 1 << wIndex;
 
-                       /* WA for Lhotse U3 Suspend */
-                       if (xhci_hub_check_speed(hcd))
-                               phy_ilbk(xhci->main_hcd->phy);
-
                        break;
                case USB_PORT_FEAT_LINK_STATE:
                        temp = readl(port_array[wIndex]);