linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] provide isr for card-detect interrupts
@ 2017-04-11 10:20 Jisheng Zhang
  2017-04-11 10:20 ` [PATCH 1/2] mmc: slot-gpio: check cd_gpio before setting up cd_gpio_isr Jisheng Zhang
  2017-04-11 10:20 ` [PATCH 2/2] mmc: sdhci: provide isr for card-detect interrupts Jisheng Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Jisheng Zhang @ 2017-04-11 10:20 UTC (permalink / raw)
  To: linux-arm-kernel

We found one issue on BG4CT platforms with GPIO for the card detect
interrupt: remove sdcard when there's read write access to the sdcard,
sometimes the card remove event can't be handled for a long time, so
the  system still think the sdcard is still plugged in. It turns out
that the sdhci_card_event() is missing in common slot gpio's card
detect isr. This should be common for all sdhci platforms.

We fix this issue by providing sdhci's own isr for card-detect
interrupts. In this own isr, we call sdhci_card_event() then process
the change of state.

patch1 is to prepare the fix in slot-gpio
patch2 is the real fix

Jisheng Zhang (2):
  mmc: slot-gpio: check cd_gpio before setting up cd_gpio_isr
  mmc: sdhci: provide isr for card-detect interrupts

 drivers/mmc/core/slot-gpio.c |  3 +++
 drivers/mmc/host/sdhci.c     | 12 ++++++++++++
 2 files changed, 15 insertions(+)

-- 
2.11.0

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

end of thread, other threads:[~2017-04-13  9:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-11 10:20 [PATCH 0/2] provide isr for card-detect interrupts Jisheng Zhang
2017-04-11 10:20 ` [PATCH 1/2] mmc: slot-gpio: check cd_gpio before setting up cd_gpio_isr Jisheng Zhang
2017-04-11 10:20 ` [PATCH 2/2] mmc: sdhci: provide isr for card-detect interrupts Jisheng Zhang
2017-04-11 10:31   ` Adrian Hunter
2017-04-13  9:17     ` Jisheng Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).