[PATCH 01/38] mmc: sdio_irq: rework sdio irq handling
Ulf Hansson
ulf.hansson at linaro.org
Thu Apr 24 01:58:59 PDT 2014
On 24 April 2014 10:46, Russell King - ARM Linux <linux at arm.linux.org.uk> wrote:
> 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 ?
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.
More information about the linux-arm-kernel
mailing list