diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-02-11 05:44:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 16:19:08 +0100 |
commit | 1f874edcb7318c5dd71025df9f3849715b4e4f71 (patch) | |
tree | 740938fad546965bbe8a371fbd1062fc39046af1 /drivers/usb/chipidea/otg.c | |
parent | usb: chipidea: imx: simplify the usbmisc callers (diff) | |
download | linux-1f874edcb7318c5dd71025df9f3849715b4e4f71.tar.xz linux-1f874edcb7318c5dd71025df9f3849715b4e4f71.zip |
usb: chipidea: add runtime power management support
Add runtime power management support.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg.c')
-rw-r--r-- | drivers/usb/chipidea/otg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c index a048b08b9d4d..ad6c87a4653c 100644 --- a/drivers/usb/chipidea/otg.c +++ b/drivers/usb/chipidea/otg.c @@ -96,6 +96,7 @@ static void ci_otg_work(struct work_struct *work) return; } + pm_runtime_get_sync(ci->dev); if (ci->id_event) { ci->id_event = false; ci_handle_id_switch(ci); @@ -104,6 +105,7 @@ static void ci_otg_work(struct work_struct *work) ci_handle_vbus_change(ci); } else dev_err(ci->dev, "unexpected event occurs at %s\n", __func__); + pm_runtime_put_sync(ci->dev); enable_irq(ci->irq); } |