diff options
author | Roman Peniaev <[email protected]> | 2014-06-10 23:57:02 +0900 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2014-07-09 11:26:12 +0200 |
commit | 6f726f495f2d5247e1614a70f9093d9f4d6380e4 (patch) | |
tree | ccf90b2d548aaab928faa989a74caa715cf4789f /net/lapb/lapb_subr.c | |
parent | d222c4c0ce170cd81a74988fd2eb99230519f9ae (diff) |
mmc: mxs: fix card detection in case of 'broken-cd' flag set
In case of reboot my olinuxino imx23 board does not see
mmc card any more. mmc_rescan is being called by delayed
work in loop, but mxs_mmc_get_cd always returns 0, so we
will never pass the card detection check and will not do
further card inition.
This patch is just an attempt to partially revert the patch
a91fe279ae of Sascha Hauer, where it is claimed that upper
layer will handle broken card detection using the polling
logic and MMC_CAP_NEEDS_POLL capability, but seems it is not
true, because upper logic still expects 1 from 'get_cd'.
So, here we always return 1 (card present) in case of
MMC_CAP_NEEDS_POLL capability set.
Signed-off-by: Roman Pen <[email protected]>
CC: Chris Ball <[email protected]>
CC: Sascha Hauer <[email protected]>
CC: Fabio Estevam <[email protected]>
CC: Shawn Guo <[email protected]>
CC: Ulf Hansson <[email protected]>
CC: [email protected]
CC: [email protected]
Acked-by: Sascha Hauer <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions