]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00182054: [MX6]: always_present flag will't work as designed at some cond
authorRyan QIAN <b32804@freescale.com>
Mon, 7 May 2012 05:54:04 +0000 (13:54 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:34 +0000 (08:34 +0200)
commitc579f69fae16a59622027a53d7ae62c4ca6f2c88
treec3ecd1a7f524c1b11dbf7ea2007f6ee79a8ad7a8
parented4ef1c4b54150811cf4d7f28b3b7173dd4cc8ac
ENGR00182054: [MX6]: always_present flag will't work as designed at some cond

As designed, when 'always_present' is set, it is assumed that cd_gpio should
be not set, and gpio_get_value(boarddata->cd_gpio) should return 0. But it is
not sure that the return value of gpio_get_value(0) is 0.

- check always_present first
- remove ESDHC_FLAG_GPIO_FOR_CD_WP flag if always_present is set.

Signed-off-by: Ryan QIAN <b32804@freescale.com>
drivers/mmc/host/sdhci-esdhc-imx.c