Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1303288
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag |
| Date | 2016-01-07 05:50 +0100 |
| Message-ID | <qOaGm-32s-3@gated-at.bofh.it> (permalink) |
| References | <qIRuF-1IG-3@gated-at.bofh.it> <qNSq6-7zw-21@gated-at.bofh.it> <qNSzN-7E8-13@gated-at.bofh.it> <qNSzN-7E8-15@gated-at.bofh.it> <qNTcu-87B-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 06, 2016 at 11:05:02AM +0100, Thomas Gleixner wrote:
> On Wed, 6 Jan 2016, Vinod Koul wrote:
> > On Wed, Jan 06, 2016 at 02:51:07PM +0530, Rameshwar Sahu wrote:
> > > >> @@ -1610,6 +1611,7 @@ static int xgene_dma_request_irqs(struct xgene_dma *pdma)
> > > >> /* Register DMA channel rx irq */
> > > >> for (i = 0; i < XGENE_DMA_MAX_CHANNEL; i++) {
> > > >> chan = &pdma->chan[i];
> > > >> + irq_set_status_flags(chan->rx_irq, IRQ_DISABLE_UNLAZY);
> > > >
> > > > Why not use irq_settings_disable_unlazy(), at least read the reference you
> > > > pointed out!
> > >
> > > irq_settings_disable_unlazy() is helper function to test
> > > IRQ_DISABLE_UNLAZY flag is set or not, it's not for setting this flag.
> > > FYI...
> > > +static inline bool irq_settings_disable_unlazy(struct irq_desc *desc)
> > > +{
> > > + return desc->status_use_accessors & _IRQ_DISABLE_UNLAZY;
> > > +}
> >
> > Ah yes, I saw clear API and assumed there would be set. Then I think we
> > should add a set helper as well as the usage is intended for drivers to
> > set this flag
> >
> > Thomas,
> >
> > Any reason why you didn't add a set helper, only test and clear?
>
> Why would I? Those helpers are core internal and not usable in random drivers.
>
> Drivers have irq_set_status_flags()/irq_clear_status_flags() ...
The effect of irq_set_status_flags(irq, IRQ_DISABLE_UNLAZY) is same as
providing a helper. If your recommendation is to use this by driver then I
am find with the approach too
Thanks
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Vinod Koul <vinod.koul@intel.com> - 2016-01-06 10:20 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Vinod Koul <vinod.koul@intel.com> - 2016-01-06 10:30 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Rameshwar Sahu <rsahu@apm.com> - 2016-01-06 10:40 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Thomas Gleixner <tglx@linutronix.de> - 2016-01-06 11:10 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Thomas Gleixner <tglx@linutronix.de> - 2016-01-06 11:20 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Suman Tripathi <stripathi@apm.com> - 2016-01-06 11:20 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Vinod Koul <vinod.koul@intel.com> - 2016-01-07 05:50 +0100
Re: [PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag Rameshwar Sahu <rsahu@apm.com> - 2016-01-06 10:30 +0100
csiph-web