From: Kisang Lee Date: Thu, 9 May 2019 01:08:22 +0000 (+0900) Subject: [RAMEN9610-14990] [COMMON] usb: remove W/A code to avoid kernel panic X-Git-Tag: MMI-QSAS30.62-33-3~909 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5fcaa5df295aedfd59c63496a4eb90dccaf0e59d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [RAMEN9610-14990] [COMMON] usb: remove W/A code to avoid kernel panic Change-Id: I29d857af3601d8e4e79ab99fdedba2118a9b8f80 Signed-off-by: Kisang Lee --- diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 77e85118b61f..ae13bc4f13d3 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2294,7 +2294,7 @@ int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg) } /* L2 suspend only support USB2.0port */ - if ((hcd->state == HC_STATE_SUSPENDED) && !hcd->driver->hub_check_speed(hcd->shared_hcd)) { + if (hcd->state == HC_STATE_SUSPENDED) { dev_info(&rhdev->dev, "HCD STATE IS SUSPENDED, NEED WAKE UNLOCK\n"); hcd->driver->wake_lock(hcd, 0); }