Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Roger Quadros
On 11/05/16 15:39, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: > static irqreturn_t dwc3_omap_threaded_interrupt(int irq, void *_omap) > { > struct dwc3_omap *omap = _omap; > u32 reg; > > spin_lock(&omap->lock); Do we really nee

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Felipe Balbi
Hi, Roger Quadros writes: static irqreturn_t dwc3_omap_threaded_interrupt(int irq, void *_omap) { struct dwc3_omap *omap = _omap; u32 reg; spin_lock(&omap->lock); >>> >>> Do we really need a spin_lock for the dwc3-omap driver? >>> Currently w

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Roger Quadros
On 11/05/16 12:47, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> Roger Quadros writes: >> @@ -497,8 +503,8 @@ static int dwc3_omap_probe(struct platform_device >> *pdev) >> /* check the DMA Status */ >> reg = dwc3_omap_readl(omap->base, USBOTGSS_SY

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Felipe Balbi
Hi, Roger Quadros writes: >> Roger Quadros writes: > @@ -497,8 +503,8 @@ static int dwc3_omap_probe(struct platform_device > *pdev) > /* check the DMA Status */ > reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG); > > - ret = devm_request_irq(dev, omap->irq, d

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Roger Quadros
Felipe, On 10/05/16 13:12, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: @@ -497,8 +503,8 @@ static int dwc3_omap_probe(struct platform_device *pdev) /* check the DMA Status */ reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG); - ret = devm_re

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-10 Thread Roger Quadros
On 10/05/16 13:12, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: @@ -497,8 +503,8 @@ static int dwc3_omap_probe(struct platform_device *pdev) /* check the DMA Status */ reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG); - ret = devm_request_irq

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-10 Thread Felipe Balbi
Hi, Roger Quadros writes: >>> @@ -497,8 +503,8 @@ static int dwc3_omap_probe(struct platform_device *pdev) >>> /* check the DMA Status */ >>> reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG); >>> >>> - ret = devm_request_irq(dev, omap->irq, dwc3_omap_interrupt, 0, >>> -

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-10 Thread Roger Quadros
On 10/05/16 12:58, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> We intend to share this interrupt with the OTG driver an to ensure >> that irqflags match for the shared interrupt handlers we use >> request_threaded_irq() >> >> If we don't use request_treaded_irq() then forced threade

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-10 Thread Felipe Balbi
Hi, Roger Quadros writes: > We intend to share this interrupt with the OTG driver an to ensure > that irqflags match for the shared interrupt handlers we use > request_threaded_irq() > > If we don't use request_treaded_irq() then forced threaded irq will > set IRQF_ONESHOT and this won't match w

[PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-10 Thread Roger Quadros
We intend to share this interrupt with the OTG driver an to ensure that irqflags match for the shared interrupt handlers we use request_threaded_irq() If we don't use request_treaded_irq() then forced threaded irq will set IRQF_ONESHOT and this won't match with the OTG IRQ handler's IRQ flags. NO