From: Kisang Lee Date: Wed, 18 Jul 2018 00:54:49 +0000 (+0900) Subject: [COMMON] usb: notify: add wake_unlock for balance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=accaac34bc7ad66804fa39cd5fec24a7028583e3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] usb: notify: add wake_unlock for balance Change-Id: I31a6ccf789093ba6093a7394dce6a1c27500cc65 Signed-off-by: Kisang Lee --- diff --git a/drivers/usb/notify/usb_notify.c b/drivers/usb/notify/usb_notify.c index 973718c924b0..223ca421f7ba 100644 --- a/drivers/usb/notify/usb_notify.c +++ b/drivers/usb/notify/usb_notify.c @@ -808,6 +808,9 @@ static void otg_notify_state(struct otg_notify *n, if (enable) { n->charger_detect = 1; if (n->usb_noti_done) { + if (n->is_wakelock) + wake_unlock(&u_notify->wlock); + n->set_charger(enable); n->usb_noti_done = 0; }