From: Chunfeng Yun Date: Tue, 8 Jun 2021 07:57:33 +0000 (+0800) Subject: usb: mtu3: remove wakelock X-Git-Tag: iomap-folio-5.17-old~1083^2~46 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3abf562723d20fef53260464969645e0106f4a93;p=users%2Fwilly%2Flinux.git usb: mtu3: remove wakelock Prefer to use /sys/power/wake_lock instead. Signed-off-by: Chunfeng Yun Link: https://lore.kernel.org/r/1623139069-8173-8-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/mtu3/mtu3_dr.c b/drivers/usb/mtu3/mtu3_dr.c index 04f666e85731..82301001f2f6 100644 --- a/drivers/usb/mtu3/mtu3_dr.c +++ b/drivers/usb/mtu3/mtu3_dr.c @@ -174,11 +174,8 @@ static void ssusb_set_mailbox(struct otg_switch_mtk *otg_sx, break; case MTU3_VBUS_OFF: mtu3_stop(mtu); - pm_relax(ssusb->dev); break; case MTU3_VBUS_VALID: - /* avoid suspend when works as device */ - pm_stay_awake(ssusb->dev); mtu3_start(mtu); break; default: