From accaac34bc7ad66804fa39cd5fec24a7028583e3 Mon Sep 17 00:00:00 2001 From: Kisang Lee Date: Wed, 18 Jul 2018 09:54:49 +0900 Subject: [PATCH] [COMMON] usb: notify: add wake_unlock for balance Change-Id: I31a6ccf789093ba6093a7394dce6a1c27500cc65 Signed-off-by: Kisang Lee --- drivers/usb/notify/usb_notify.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1