mmc: mxs: fix card detection in case of 'broken-cd' flag set
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 <0e091c935e53b483ce302ea7a3b7eacb9583e677@gmail.com>
CC: Chris Ball <711c73f64afdce07b7e38039a96d2224209e9a6c@printf.net>
CC: Sascha Hauer <c00cbc2b736c26791a3822db86f8796fe9efff67@pengutronix.de>
CC: Fabio Estevam <679188261afeb60eb822cd934fd7b46a48ddd743@freescale.com>
CC: Shawn Guo <912cf7eb7d8018e2943586ae6657d21fd4e38239@linaro.org>
CC: Ulf Hansson <fe47b31f388f85ce6ddf64bf3a0cf6b46077d0e6@linaro.org>
CC: 190714b5e3b206b2803d813e21dbfacc2ccf75d1@vger.kernel.org
CC: 2578944098299abf708b08eff6fcf60565553586@vger.kernel.org
Acked-by: Sascha Hauer <c00cbc2b736c26791a3822db86f8796fe9efff67@pengutronix.de>
Signed-off-by: Ulf Hansson <fe47b31f388f85ce6ddf64bf3a0cf6b46077d0e6@linaro.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs