Commit 3781d288 authored by Tony Lindgren's avatar Tony Lindgren Committed by Ulf Hansson
Browse files

mmc: sdhci-omap: Parse legacy ti,non-removable property



We need to support the legacy ti,non-removable property too. Let's warn
about the legacy property and mark the device as non-removable.

Naturally all the mainline kernel devicetree files will get updated to use
the standard non-removable property with the sdhci-omap conversion. But we
also have folks updating their kernels with custom devicetree files that
we need to consider.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210921110029.21944-5-tony@atomide.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 53f9460e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1213,6 +1213,11 @@ static int sdhci_omap_probe(struct platform_device *pdev)
	if (of_find_property(dev->of_node, "dmas", NULL))
		sdhci_switch_external_dma(host, true);

	if (device_property_read_bool(dev, "ti,non-removable")) {
		dev_warn_once(dev, "using old ti,non-removable property\n");
		mmc->caps |= MMC_CAP_NONREMOVABLE;
	}

	/* R1B responses is required to properly manage HW busy detection. */
	mmc->caps |= MMC_CAP_NEED_RSP_BUSY;