Hi,

> -----Original Message-----
> From: Robert Baldyga [mailto:r.bald...@samsung.com]
> Sent: Tuesday, December 23, 2014 9:40 AM
> To: Mian Yousaf Kaukab; linux-usb@vger.kernel.org; ba...@ti.com
> Cc: Herrero, Gregory; pa...@synopsys.com;
> sergei.shtyl...@cogentembedded.com; Kaukab, Yousaf
> Subject: Re: [PATCH v1 16/29] usb: dwc2: gadget: kill requests after disabling
> ep
> 
> Hi,
> 
> On 12/21/2014 05:15 PM, Mian Yousaf Kaukab wrote:
> > kill_all_requests() can flush the fifo. Call it after disabling the
> > endpoint. Moreover, remove even the current IN request so that next IN
> > request after s3c_hsotg_ep_enable can be properly handled.
> >
> > Signed-off-by: Mian Yousaf Kaukab <yousaf.kau...@intel.com>
> > ---
> >  drivers/usb/dwc2/gadget.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
> > index 031f7edc..4ccf59b 100644
> > --- a/drivers/usb/dwc2/gadget.c
> > +++ b/drivers/usb/dwc2/gadget.c
> > @@ -2612,8 +2612,6 @@ static int s3c_hsotg_ep_disable(struct usb_ep *ep)
> >     epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index);
> >
> >     spin_lock_irqsave(&hsotg->lock, flags);
> > -   /* terminate all requests with shutdown */
> > -   kill_all_requests(hsotg, hs_ep, -ESHUTDOWN, false);
> >
> >     hsotg->fifo_map &= ~(1<<hs_ep->fifo_index);
> >     hs_ep->fifo_index = 0;
> > @@ -2630,6 +2628,9 @@ static int s3c_hsotg_ep_disable(struct usb_ep *ep)
> >     /* disable endpoint interrupts */
> >     s3c_hsotg_ctrl_epint(hsotg, hs_ep->index, hs_ep->dir_in, 0);
> >
> > +   /* terminate all requests with shutdown */
> > +   kill_all_requests(hsotg, hs_ep, -ESHUTDOWN, true);
> > +
> >     spin_unlock_irqrestore(&hsotg->lock, flags);
> >     return 0;
> >  }
> >
> 
> After this change function kill_all_requests() is always called with second
> parameter = 'true', so we don't need to have this parameter anymore.
> 
> I have already sent patch making that change:
> https://lkml.org/lkml/2014/12/16/135

I am OK with your patch. I also want to call kill_all_requests after disabling 
the ep so I can just rebase this change on top of your patch.

Felipe, should I already rebase on top of Robert's patch and mark it as 
dependency in my patchset or should I wait for the rebase till you apply 
Robert's patch to your branch?  

BR,
Yousaf
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to