]> asedeno.scripts.mit.edu Git - linux.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)
commitc7b16deec958c35c2e7a2fccacf5a677564978a9
tree60e4d1497b60485008ebff479882081182ff708c
parentb388dc3c9a4a418235c789bf69b6d38ac1e5c6fd
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