diff mbox series

usb: dwc3: gadget: let pm runtime get/put paired

Message ID 20230727005150.18836-1-surong.pang@unisoc.com
State Superseded
Headers show
Series usb: dwc3: gadget: let pm runtime get/put paired | expand

Commit Message

Surong Pang July 27, 2023, 12:51 a.m. UTC
pm_runtime_get is called when setting pending_events to true.
pm_runtime_put is needed for pairing with pm_runtime_get.

Signed-off-by: Surong Pang <surong.pang@unisoc.com>
---
 drivers/usb/dwc3/gadget.c | 1 +
 1 file changed, 1 insertion(+)

--
2.17.1
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 5fd067151fbf..9c835c5f9928 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -4720,5 +4720,6 @@  void dwc3_gadget_process_pending_events(struct dwc3 *dwc)
                dwc3_interrupt(dwc->irq_gadget, dwc->ev_buf);
                dwc->pending_events = false;
                enable_irq(dwc->irq_gadget);
+               pm_runtime_put(dwc->dev);
        }
 }