[PATCH 01/38] mmc: sdio_irq: rework sdio irq handling

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Apr 24 01:46:16 PDT 2014


On Thu, Apr 24, 2014 at 09:58:55AM +0200, Ulf Hansson wrote:
> On 23 April 2014 21:06, Russell King <rmk+kernel at arm.linux.org.uk> wrote:
> > +               if (!(host->caps2 & MMC_CAP2_SDIO_NOTHREAD)) {
> > +                       atomic_set(&host->sdio_irq_thread_abort, 0);
> > +                       host->sdio_irq_thread =
> > +                               kthread_run(sdio_irq_thread, host,
> > +                                           "ksdioirqd/%s", mmc_hostname(host));
> > +                       if (IS_ERR(host->sdio_irq_thread)) {
> > +                               int err = PTR_ERR(host->sdio_irq_thread);
> > +                               host->sdio_irqs--;
> > +                               return err;
> > +                       }
> > +               } else {
> 
> I suppose you need to check for MMC_CAP_SDIO_IRQ here?

Why would you set MMC_CAP2_SDIO_NOTHREAD if you didn't have MMC_CAP_SDIO_IRQ ?

-- 
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.



More information about the linux-arm-kernel mailing list