In message: [linux-yocto] [PATCH] usb: dwc3: Drop the suspend argument for dwc3_gadget_run_stop() on 20/05/2023 Kevin Hao wrote:
> From: Kevin Hao <[email protected]> > > Due to the change in stable commit 065c3d4319c5 ("USB: dwc3: gadget: drop > dead hibernation code"), the suspend argument is dropped for > dwc3_gadget_run_stop(). So adjust the SDK codes for this change. > > Signed-off-by: Kevin Hao <[email protected]> > --- > Hi Bruce, > > Could you help me merge this into the following two branches? > v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc > v6.1/standard/sdkv6.1/xlnx-soc merged. Bruce > > drivers/usb/dwc3/gadget.h | 2 +- > drivers/usb/dwc3/gadget_hibernation.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h > index ef29e0a183be..9c25d59f0c27 100644 > --- a/drivers/usb/dwc3/gadget.h > +++ b/drivers/usb/dwc3/gadget.h > @@ -133,7 +133,7 @@ int __dwc3_gadget_ep_disable(struct dwc3_ep *dep); > int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep); > void dwc3_stop_active_transfer(struct dwc3_ep *dep, bool force, > bool interrupt); > -int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend); > +int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on); > dma_addr_t dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb); > void dwc3_gadget_enter_hibernation(struct dwc3 *dwc); > void dwc3_gadget_exit_hibernation(void *_dwc); > diff --git a/drivers/usb/dwc3/gadget_hibernation.c > b/drivers/usb/dwc3/gadget_hibernation.c > index fa086dd6535c..f54c39dcccd9 100644 > --- a/drivers/usb/dwc3/gadget_hibernation.c > +++ b/drivers/usb/dwc3/gadget_hibernation.c > @@ -327,7 +327,7 @@ void dwc3_gadget_enter_hibernation(struct dwc3 *dwc) > } > > /* stop the controller */ > - dwc3_gadget_run_stop(dwc, false, true); > + dwc3_gadget_run_stop(dwc, false); > > /* set the flag */ > dwc->is_hibernated = true; > @@ -457,7 +457,7 @@ void dwc3_gadget_exit_hibernation(void *_dwc) > } > > /* start the controller */ > - ret = dwc3_gadget_run_stop(dwc, true, false); > + ret = dwc3_gadget_run_stop(dwc, true); > if (ret < 0) { > dev_err(dwc->dev, "USB core failed to start on wakeup\n"); > goto err; > -- > 2.39.2 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12636): https://lists.yoctoproject.org/g/linux-yocto/message/12636 Mute This Topic: https://lists.yoctoproject.org/mt/99022860/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
