mmc: core: Re-use code for MMC_CAP2_DETECT_ON_ERR in polling mode
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Apr 2013 09:02:07 +0000 (11:02 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 04:28:15 +0000 (12:28 +0800)
commit59d3e812090d20d26d437ad99982753cdd751173
tree8555aa8af8e2a7dbf42da3c61409d8c3bb50763b
parent6ed94c6e1b14cbe4fc0d717676ff8c0faad4bfc6
mmc: core: Re-use code for MMC_CAP2_DETECT_ON_ERR in polling mode

Previously the MMC_CAP2_DETECT_ON_ERR was invented for detecting
slow card removal. In was never a realy good solution and a proper
fix has been merged using gpio debouncing instead. We remove this
cap in this patch.

Although when using polling card detect mode, the code invented for
MMC_CAP2_DETECT_ON_ERR is re-used to complete card removal in an
earlier phase. There are no need waiting for the polling timeout to
elapse in this case.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h