diff options
author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2014-01-16 13:48:47 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-01-17 15:21:38 +0100 |
commit | 7cf347bd20ec8169add381ad23f9fb25c6c076f0 (patch) | |
tree | ae046124b883b03f346b2275aa38bddcb5f10cd7 /firmware/cpia2 | |
parent | mmc: dw_mmc: fix sparse non static symbol warning (diff) | |
download | linux-7cf347bd20ec8169add381ad23f9fb25c6c076f0.tar.xz linux-7cf347bd20ec8169add381ad23f9fb25c6c076f0.zip |
mmc: dw_mmc: fix dw_mci_get_cd
bf626e5550f24aec ("mmc: dw_mmc: use slot-gpio to handle cd pin") caused
CDETECT to be ignored, since negated return value of mmc_gpio_get_cd(mmc)
can not be checked by IS_ERR_VALUE.
Also, add spin_lock_bh(&host->lock) for atomic access to
DW_MMC_CARD_PRESENT, otherwise sd detect may occasionally fail.
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reported-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
Tested-by: Sachin Kamat <sachin.kamat@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'firmware/cpia2')
0 files changed, 0 insertions, 0 deletions