public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* omap_hsmmc: sdio: issue with generic wakeup IRQ handling
@ 2016-02-18 18:27 Vishal Thanki
  2016-02-18 21:31 ` Andreas Fenkart
  0 siblings, 1 reply; 8+ messages in thread
From: Vishal Thanki @ 2016-02-18 18:27 UTC (permalink / raw)
  To: linux-mmc, ulf.hansson, afenkart

Hi,

On a custom built am335x based board, I am facing an issue mwifiex wifi
module which is connected to host via SDIO interface. I am using kernel
version 4.4.

The problem is related to the wifi "ext_scan" command getting timed out
over SDIO. This was working with old kernel (v4.0), but does not work on
kernel v4.4. I found the following commit is responsible for this
behavior.

=================================
5b83b2234be6733cfe22036c38031b2c890b3db8

mmc: omap_hsmmc: Change wake-up interrupt to use generic wakeirq 

We can now use generic wakeirq handling and remove the custom handling 
for the wake-up interrupts. 
=================================

There is no wifi issue if I revert the above mentioned commit on kernel
v4.4.

I see that before this commit, the wakeup IRQ handler was registered
within the omap_hsmmc.c itself with additional IRQF_TRIGGER_LOW flag.
But with the introduction to dev_pm_set_dedicated_wake_irq(), the
generic wakeup IRQ handler is registered which does not take the
IRQF_TRIGGER flag. I am not sure if that is the issue, but I added that
IRQF_TRIGGER_LOW flag in dev_pm_set_dedicated_wake_irq() while
registering a threaded IRQ handler, I could see the problem disappears.
However, this change is causing the infinite interrupts because the of
level triggered interrupt is not handled in generic wakeup IRQ handling
code (as it was done specially in omap_hsmmc.c code earlier). 

I am not much familiar with MMC/SDIO driver and I am not sure how to fix
this behavior. So any guidance would be really helpful.

Thanks,
Vishal

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-25 12:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 18:27 omap_hsmmc: sdio: issue with generic wakeup IRQ handling Vishal Thanki
2016-02-18 21:31 ` Andreas Fenkart
2016-02-19 14:11   ` Vishal Thanki
2016-02-24 21:32     ` Vishal Thanki
2016-02-25 10:46       ` Grygorii Strashko
2016-02-25 11:18         ` Vishal Thanki
2016-02-25 11:47           ` Grygorii Strashko
2016-02-25 12:18             ` Vishal Thanki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox