Messages in this thread Patch in this message | | | From | <> | Subject | [PATCHv5 5/7] usb: dwc2: Add call_gadget functions for perpheral mode interrupts | Date | Mon, 20 Oct 2014 13:52:04 -0500 |
| |
From: Dinh Nguyen <dinguyen@opensource.altera.com>
Update the dwc2 wakeup and suspend interrupt functions to use call_gadget when the IP is in peripheral mode.
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> --- drivers/usb/dwc2/core_intr.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index b0c14e0..1240875 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/core_intr.c @@ -339,6 +339,7 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) } /* Change to L0 state */ hsotg->lx_state = DWC2_L0; + call_gadget(hsotg, resume); } else { if (hsotg->lx_state != DWC2_L1) { u32 pcgcctl = readl(hsotg->regs + PCGCTL); @@ -399,6 +400,7 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) "DSTS.Suspend Status=%d HWCFG4.Power Optimize=%d\n", !!(dsts & DSTS_SUSPSTS), hsotg->hw_params.power_optimized); + call_gadget(hsotg, suspend); } else { if (hsotg->op_state == OTG_STATE_A_PERIPHERAL) { dev_dbg(hsotg->dev, "a_peripheral->a_host\n"); -- 2.0.3
| |