summaryrefslogtreecommitdiff
path: root/drivers/usb/mtu3
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2021-06-08 15:57:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-15 15:42:48 +0200
commit3abf562723d20fef53260464969645e0106f4a93 (patch)
treeb0cddf505bb0a16a260e5eb54e6f0bc49a3e1eb8 /drivers/usb/mtu3
parent960d3557d20377bb984cdcb5758a2f9fd2eeb850 (diff)
usb: mtu3: remove wakelock
Prefer to use /sys/power/wake_lock instead. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1623139069-8173-8-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3')
-rw-r--r--drivers/usb/mtu3/mtu3_dr.c3
1 files changed, 0 insertions, 3 deletions
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: