mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
mmc: pxamci: fix read-only gpio detection polarity
The commit converting pxamci to slot-gpio API inverted the logic of the
read-only gpio. Fix it by inverting the logic again.
Fixes: fd546ee6a7
("mmc: pxamci: fix card detect with slot-gpio API")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
ce5c2d2c25
commit
26d49fe719
1 changed files with 1 additions and 1 deletions
|
@ -805,7 +805,7 @@ static int pxamci_probe(struct platform_device *pdev)
|
||||||
goto out;
|
goto out;
|
||||||
} else {
|
} else {
|
||||||
mmc->caps |= host->pdata->gpio_card_ro_invert ?
|
mmc->caps |= host->pdata->gpio_card_ro_invert ?
|
||||||
MMC_CAP2_RO_ACTIVE_HIGH : 0;
|
0 : MMC_CAP2_RO_ACTIVE_HIGH;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gpio_is_valid(gpio_cd))
|
if (gpio_is_valid(gpio_cd))
|
||||||
|
|
Loading…
Reference in a new issue