* [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill [not found] <1351670761-26749-1-git-send-email-xtfeng@gmail.com> @ 2012-10-31 8:06 ` Xiaotian Feng 2012-10-31 13:26 ` Felipe Balbi 0 siblings, 1 reply; 4+ messages in thread From: Xiaotian Feng @ 2012-10-31 8:06 UTC (permalink / raw) To: linux-kernel Cc: Xiaotian Feng, Greg Kroah-Hartman, linux-usb, Felipe Balbi, Xiaotian Feng, linuxppc-dev If tasklet_disable() is called before related tasklet handled, tasklet_kill will never be finished. tasklet_kill is enough. Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com> Cc: Li Yang <leoli@freescale.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org --- drivers/usb/gadget/fsl_qe_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index b09452d..4ad3b82 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c @@ -2661,7 +2661,7 @@ static int __devexit qe_udc_remove(struct platform_device *ofdev) usb_del_gadget_udc(&udc->gadget); udc->done = &done; - tasklet_disable(&udc->rx_tasklet); + tasklet_kill(&udc->rx_tasklet); if (udc->nullmap) { dma_unmap_single(udc->gadget.dev.parent, @@ -2698,8 +2698,6 @@ static int __devexit qe_udc_remove(struct platform_device *ofdev) free_irq(udc->usb_irq, udc); irq_dispose_mapping(udc->usb_irq); - tasklet_kill(&udc->rx_tasklet); - iounmap(udc->usb_regs); device_unregister(&udc->gadget.dev); -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill 2012-10-31 8:06 ` [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill Xiaotian Feng @ 2012-10-31 13:26 ` Felipe Balbi 2012-10-31 14:35 ` Li Yang 0 siblings, 1 reply; 4+ messages in thread From: Felipe Balbi @ 2012-10-31 13:26 UTC (permalink / raw) To: Xiaotian Feng Cc: Xiaotian Feng, Greg Kroah-Hartman, linux-usb, linux-kernel, Felipe Balbi, linuxppc-dev [-- Attachment #1: Type: text/plain, Size: 1556 bytes --] On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: > If tasklet_disable() is called before related tasklet handled, > tasklet_kill will never be finished. tasklet_kill is enough. how did you test this ? Why changing FSL driver instead of switching over to chipidea which is supposed to be shared by every licensee of the chipidea core ? > Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com> > Cc: Li Yang <leoli@freescale.com> > Cc: Felipe Balbi <balbi@ti.com> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: linux-usb@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > --- > drivers/usb/gadget/fsl_qe_udc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c > index b09452d..4ad3b82 100644 > --- a/drivers/usb/gadget/fsl_qe_udc.c > +++ b/drivers/usb/gadget/fsl_qe_udc.c > @@ -2661,7 +2661,7 @@ static int __devexit qe_udc_remove(struct platform_device *ofdev) > usb_del_gadget_udc(&udc->gadget); > > udc->done = &done; > - tasklet_disable(&udc->rx_tasklet); > + tasklet_kill(&udc->rx_tasklet); > > if (udc->nullmap) { > dma_unmap_single(udc->gadget.dev.parent, > @@ -2698,8 +2698,6 @@ static int __devexit qe_udc_remove(struct platform_device *ofdev) > free_irq(udc->usb_irq, udc); > irq_dispose_mapping(udc->usb_irq); > > - tasklet_kill(&udc->rx_tasklet); > - > iounmap(udc->usb_regs); > > device_unregister(&udc->gadget.dev); > -- > 1.7.9.5 > -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill 2012-10-31 13:26 ` Felipe Balbi @ 2012-10-31 14:35 ` Li Yang 2012-10-31 14:34 ` Felipe Balbi 0 siblings, 1 reply; 4+ messages in thread From: Li Yang @ 2012-10-31 14:35 UTC (permalink / raw) To: balbi Cc: Xiaotian Feng, Greg Kroah-Hartman, linux-usb, linux-kernel, Xiaotian Feng, linuxppc-dev On Wed, Oct 31, 2012 at 9:26 PM, Felipe Balbi <balbi@ti.com> wrote: > On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: >> If tasklet_disable() is called before related tasklet handled, >> tasklet_kill will never be finished. tasklet_kill is enough. > > how did you test this ? Why changing FSL driver instead of switching > over to chipidea which is supposed to be shared by every licensee of the > chipidea core ? The QE UDC is an private controller that is not compatible with the Chipidea core. - Leo ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill 2012-10-31 14:35 ` Li Yang @ 2012-10-31 14:34 ` Felipe Balbi 0 siblings, 0 replies; 4+ messages in thread From: Felipe Balbi @ 2012-10-31 14:34 UTC (permalink / raw) To: Li Yang Cc: Xiaotian Feng, Greg Kroah-Hartman, linux-usb, linux-kernel, balbi, Xiaotian Feng, linuxppc-dev [-- Attachment #1: Type: text/plain, Size: 714 bytes --] Hi, On Wed, Oct 31, 2012 at 10:35:37PM +0800, Li Yang wrote: > On Wed, Oct 31, 2012 at 9:26 PM, Felipe Balbi <balbi@ti.com> wrote: > > On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: > >> If tasklet_disable() is called before related tasklet handled, > >> tasklet_kill will never be finished. tasklet_kill is enough. > > > > how did you test this ? Why changing FSL driver instead of switching > > over to chipidea which is supposed to be shared by every licensee of the > > chipidea core ? > > The QE UDC is an private controller that is not compatible with the > Chipidea core. thanks for the clarification, but you still haven't answered how you tested this ;-) -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-31 14:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1351670761-26749-1-git-send-email-xtfeng@gmail.com> 2012-10-31 8:06 ` [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill Xiaotian Feng 2012-10-31 13:26 ` Felipe Balbi 2012-10-31 14:35 ` Li Yang 2012-10-31 14:34 ` Felipe Balbi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).