diff options
author | Haibo Chen <haibo.chen@freescale.com> | 2015-09-15 18:32:58 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 15:59:55 +0100 |
commit | 14a7b416434a8076afb2dea8bb51c6514b41a47b (patch) | |
tree | 67e38d102d8dcbbb1386a070a20ab572cdd783cc /drivers/mmc/core/sdio_cis.h | |
parent | 28804293b9086100ae784a15d62ebf6249db433c (diff) |
mmc: sdhci: call sdhci_init() before request irq
sdhci_init() will clear all irqs and set the needed irqs. So
logically sdhci_init() should be called before request irq.
If not, some irqs may be triggled and handled wrongly. Take
the following into consideration, after request irq, if
SDIO card interrupt enabled, a sd card in the sd slot will
trigger a mass of interrupt(SDHCI_INT_CARD_INT), because at
this time, the vmmc-regulator still not restore, no voltage
supply for the sd card, so the pin of data0~data3 change and
keep low, interrupt(SDHCI_INT_CARD_INT) will rise up ceaselessly.
Due to we already reguest irq, system will be busy in handling
this endless irq, can't response to other event.
So we should call sdhci_init() before request irq in sd resume.
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sdio_cis.h')
0 files changed, 0 insertions, 0 deletions