diff options
author | Zhangfei Gao <[email protected]> | 2014-01-16 20:48:47 +0800 |
---|---|---|
committer | Chris Ball <[email protected]> | 2014-01-17 09:21:38 -0500 |
commit | 7cf347bd20ec8169add381ad23f9fb25c6c076f0 (patch) | |
tree | ae046124b883b03f346b2275aa38bddcb5f10cd7 /tools/perf/util/trace-event-scripting.c | |
parent | 85136b74dc7fbbcaf173b660406de8aa1dd0068a (diff) |
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 <[email protected]>
Reported-by: Kevin Hilman <[email protected]>
Reviewed-by: Sachin Kamat <[email protected]>
Tested-by: Sachin Kamat <[email protected]>
Tested-by: Kevin Hilman <[email protected]>
Acked-by: Seungwon Jeon <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions