bcm27xx: add support for linux v5.15
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0519-mmc-sdhci-iproc-Fix-vmmc-regulators-pre-bcm2711.patch
1 From dc50e276ae888c06e2daf8549b85dd3ed1765115 Mon Sep 17 00:00:00 2001
2 From: Juerg Haefliger <juergh@canonical.com>
3 Date: Wed, 29 Sep 2021 11:42:23 +0200
4 Subject: [PATCH] mmc: sdhci-iproc: Fix vmmc regulators (pre-bcm2711)
5
6 The Linux support for controlling card power via regulators appears to
7 be contentious. I would argue that the default behaviour is contrary to
8 the SDHCI spec - turning off the power writes a reserved value to the
9 SD Bus Voltage Select field of the Power Control Register, which
10 seems to kill the Arasan/iProc controller - but fortunately there is a
11 hook in sdhci_ops to override the behaviour.
12
13 Signed-off-by: Juerg Haefliger <juergh@canonical.com>
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
15 ---
16 drivers/mmc/host/sdhci-iproc.c | 1 +
17 1 file changed, 1 insertion(+)
18
19 --- a/drivers/mmc/host/sdhci-iproc.c
20 +++ b/drivers/mmc/host/sdhci-iproc.c
21 @@ -207,6 +207,7 @@ static const struct sdhci_ops sdhci_ipro
22 .write_b = sdhci_iproc_writeb,
23 .set_clock = sdhci_set_clock,
24 .get_max_clock = sdhci_iproc_get_max_clock,
25 + .set_power = sdhci_set_power_and_bus_voltage,
26 .set_bus_width = sdhci_set_bus_width,
27 .reset = sdhci_reset,
28 .set_uhs_signaling = sdhci_set_uhs_signaling,