Commit 41c89159 authored by Robert Jarzmik's avatar Robert Jarzmik Committed by Ulf Hansson

mmc: pxamci: fix again read-only gpio detection polarity

The commit fixing the conversion of pxamci to slot-gpio API fixed the
inverted the logic of the read-only gpio. Unfortunately, the commit was
tested on a non-inverted gpio, and not on the inverted one. And the fix
did work partially, by luck.

This is the remaining missing part of the fix, trivial but still necessary.

Fixes: Fixes: 26d49fe7 ("mmc: pxamci: fix read-only gpio detection polarity")
Reported-by: default avatarAndrea Adami <andrea.adami@gmail.com>
Tested-by: default avatarAndrea Adami <andrea.adami@gmail.com>
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 36f90b0a
...@@ -804,7 +804,7 @@ static int pxamci_probe(struct platform_device *pdev) ...@@ -804,7 +804,7 @@ static int pxamci_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "Failed requesting gpio_ro %d\n", gpio_ro); dev_err(&pdev->dev, "Failed requesting gpio_ro %d\n", gpio_ro);
goto out; goto out;
} else { } else {
mmc->caps |= host->pdata->gpio_card_ro_invert ? mmc->caps2 |= host->pdata->gpio_card_ro_invert ?
0 : MMC_CAP2_RO_ACTIVE_HIGH; 0 : MMC_CAP2_RO_ACTIVE_HIGH;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment