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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 April 2014 10:46, Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Apr 24, 2014 at 09:58:55AM +0200, Ulf Hansson wrote:
>> On 23 April 2014 21:06, Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> 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 ?

You are right!

Maybe change the name to "MMC_CAP2_SDIO_IRQ_NOTHREAD", unless we think
it becomes too long :-). Additionally, there are actually still some
bits available in the MMC_CAP_* bits, instead of the MMC_CAP2_*.

No strong opinion though, feel free to keep as is.

>
> --
> FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
> improving, and getting towards what was expected from it.
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux