]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mediatek: add ops->get_cd() support
authorChaotian Jing <chaotian.jing@mediatek.com>
Mon, 3 Jul 2017 06:24:56 +0000 (14:24 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:27 +0000 (14:01 +0200)
commit34e1f11321aaa5e455359deb8d0ed46258709d26
tree60e4d1497b60485008ebff479882081182ff708c
parent4a09170a48acc8503e5457967b048e8e9309602b
mmc: mediatek: add ops->get_cd() support

if user plug out sd card slowly, finally card is plugged out but
cat /proc/partitions can find that card is still exist in kernel.
that's because alougth get card detect interrupt but CMD13 still
can get correct response(all other pins are connected expect card
detect pin).
add ops->get_cd() can avoid this issue.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c