Skip to contentSkip to conversation

SDHCI interrupt handling

DISCUSSION Nathan Sullivan 2 participants 2 messages Sep 18, 2015 – Sep 19, 2015

lore
Share & tools
lore
#0 lore raw

I have noticed that doing SDIO access from the SDHCI interrupt handler, like the ath6kl_sdio driver does, is currently broken in 4.1 RT due to d04ea10ba1ea 'mmc: sdhci: don't provide hard irq handler'. Since the SDHCI IRQ is masked in the threaded handler that calls the card IRQ handler, drivers cannot perform MMC IO from their card IRQ handlers since the SDHCI driver will time out waiting for the SDHCI hard IRQ to happen.

Is d04ea10ba1ea a temporary hack, or should drivers be fixed to perform IO a in a different way?

#1 lore raw
Quoted 9 lines · Nathan Sullivan

I have noticed that doing SDIO access from the SDHCI interrupt handler, like the ath6kl_sdio driver does, is currently broken in 4.1 RT due to d04ea10ba1ea 'mmc: sdhci: don't provide hard irq handler'. Since the SDHCI IRQ is masked in the threaded handler that calls the card IRQ handler, drivers cannot perform MMC IO from their card IRQ handlers since the SDHCI driver will time out waiting for the SDHCI hard IRQ to happen.

Is d04ea10ba1ea a temporary hack, or should drivers be fixed to perform IO a in a different way?

That's temporary and looks not really well thought out. I have a mainline report against SDHCI + interrupt force threading as well, so I'm looking for a solution.

Thanks,

tglx