[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170413171759.1e98aa36@xhacker>
Date: Thu, 13 Apr 2017 17:17:59 +0800
From: Jisheng Zhang <jszhang@...vell.com>
To: Adrian Hunter <adrian.hunter@...el.com>
CC: <ulf.hansson@...aro.org>, <linux-mmc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/2] mmc: sdhci: provide isr for card-detect interrupts
On Tue, 11 Apr 2017 13:31:16 +0300 Adrian Hunter wrote:
> On 11/04/17 13:20, Jisheng Zhang wrote:
> > We found one issue on BG4CT platforms with GPIO for sdcar 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.
>
> ->card_event() is called by mmc_rescan(). Why is that too late?
Indeed, maybe the "too late" here is not accurate. Compared with host's
CD interrupt handling, the GPIO CD interrupt handling differs in when to
call sdhci_card_event(): in previous case, it's called in ISR, in later
it's in workqueue.
Now, I agree it's not necessary to put into ISR. So let's ignore the
two patches.
Thanks for your review,
Jisheng
Powered by blists - more mailing lists