PXA devices suffered SD card RO. The patch fixes this. Signed-off-by: Andrea Adami <[email protected]> --- .../mmc-pxamci-fix-again-read-only.patch | 36 ++++++++++++++++++++++ recipes-kernel/linux/linux-handheld_4.4.bb | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 recipes-kernel/linux/linux-handheld-4.4/mmc-pxamci-fix-again-read-only.patch
diff --git a/recipes-kernel/linux/linux-handheld-4.4/mmc-pxamci-fix-again-read-only.patch b/recipes-kernel/linux/linux-handheld-4.4/mmc-pxamci-fix-again-read-only.patch new file mode 100644 index 0000000..06def8c --- /dev/null +++ b/recipes-kernel/linux/linux-handheld-4.4/mmc-pxamci-fix-again-read-only.patch @@ -0,0 +1,36 @@ +From 8d95a16273994a4cf12f4a6cb05fac0da8a5ad96 Mon Sep 17 00:00:00 2001 +From: Robert Jarzmik <[email protected]> +Date: Thu, 28 Jan 2016 13:10:03 +0100 +Subject: [PATCH] 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: 26d49fe71953 ("mmc: pxamci: fix read-only gpio detection polarity") +Reported-by: Andrea Adami <[email protected]> +Signed-off-by: Robert Jarzmik <[email protected]> +Cc: [email protected] +--- + drivers/mmc/host/pxamci.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c +index ce08896b9d69..28a057fae0a1 100644 +--- a/drivers/mmc/host/pxamci.c ++++ b/drivers/mmc/host/pxamci.c +@@ -804,7 +804,7 @@ static int pxamci_probe(struct platform_device *pdev) + dev_err(&pdev->dev, "Failed requesting gpio_ro %d\n", gpio_ro); + goto out; + } else { +- mmc->caps |= host->pdata->gpio_card_ro_invert ? ++ mmc->caps2 |= host->pdata->gpio_card_ro_invert ? + 0 : MMC_CAP2_RO_ACTIVE_HIGH; + } + +-- +2.1.4 + diff --git a/recipes-kernel/linux/linux-handheld_4.4.bb b/recipes-kernel/linux/linux-handheld_4.4.bb index 55ffc92..59a54cf 100644 --- a/recipes-kernel/linux/linux-handheld_4.4.bb +++ b/recipes-kernel/linux/linux-handheld_4.4.bb @@ -9,6 +9,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v4.x/linux-${PV}.tar.xz;name=kernel" SRC_URI[kernel.md5sum] = "9a78fa2eb6c68ca5a40ed5af08142599" SRC_URI[kernel.sha256sum] = "401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2" +SRC_URI += "file://mmc-pxamci-fix-again-read-only.patch" + LOCOMO_PATCHES = "\ file://locomo/0001-mfd-add-new-driver-for-Sharp-LoCoMo.patch \ file://locomo/0002-leds-port-locomo-leds-driver-to-new-locomo-core.patch \ -- 1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
