rockchip: backport mmc fixes from newer kernel
Refreshed patches while at it. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
c9365b3c27
commit
97550efd03
@ -22,7 +22,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||
|
||||
--- a/drivers/usb/dwc3/core.c
|
||||
+++ b/drivers/usb/dwc3/core.c
|
||||
@@ -1127,6 +1127,11 @@ static int dwc3_core_init(struct dwc3 *d
|
||||
@@ -1090,6 +1090,11 @@ static int dwc3_core_init(struct dwc3 *d
|
||||
if (dwc->parkmode_disable_ss_quirk)
|
||||
reg |= DWC3_GUCTL1_PARKMODE_DISABLE_SS;
|
||||
|
||||
|
||||
@ -192,7 +192,7 @@ Link: https://patchwork.freedesktop.org/patch/msgid/94eee7ab434fe11eb0787f691e9f
|
||||
int rockchip_drm_endpoint_is_subdriver(struct device_node *ep);
|
||||
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
|
||||
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
|
||||
@@ -2181,6 +2181,8 @@ static int vop_bind(struct device *dev,
|
||||
@@ -2189,6 +2189,8 @@ static int vop_bind(struct device *dev,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
From 95921151e04335e9e2ddf4f294405e64be4ea947 Mon Sep 17 00:00:00 2001
|
||||
From: Liming Sun <limings@nvidia.com>
|
||||
Date: Wed, 11 Jan 2023 13:14:58 -0500
|
||||
Subject: [PATCH] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3
|
||||
SoC
|
||||
|
||||
This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be
|
||||
consistent with the default setting in firmware(UEFI).
|
||||
|
||||
Reviewed-by: David Woods <davwoods@nvidia.com>
|
||||
Signed-off-by: Liming Sun <limings@nvidia.com>
|
||||
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
|
||||
Link: https://lore.kernel.org/r/990885f566c32ac8e6888ad6b434fb70d1a5d7af.1673460632.git.limings@nvidia.com
|
||||
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
|
||||
---
|
||||
drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
|
||||
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
|
||||
@@ -528,6 +528,11 @@ static int dwcmshc_probe(struct platform
|
||||
goto err_clk;
|
||||
}
|
||||
|
||||
+#ifdef CONFIG_ACPI
|
||||
+ if (pltfm_data == &sdhci_dwcmshc_bf3_pdata)
|
||||
+ sdhci_enable_v4_mode(host);
|
||||
+#endif
|
||||
+
|
||||
host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
|
||||
|
||||
err = sdhci_setup_host(host);
|
||||
@ -0,0 +1,27 @@
|
||||
From cfd4ea4815d16f7426723a5cb80ee5db811ea1f2 Mon Sep 17 00:00:00 2001
|
||||
From: Liming Sun <limings@nvidia.com>
|
||||
Date: Thu, 2 Feb 2023 10:29:15 -0500
|
||||
Subject: [PATCH] mmc: sdhci-of-dwcmshc: add the missing device table IDs for
|
||||
acpi
|
||||
|
||||
This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else
|
||||
it won't be loaded automatically when compiled as a kernel module.
|
||||
|
||||
Reviewed-by: David Thompson <davthompson@nvidia.com>
|
||||
Signed-off-by: Liming Sun <limings@nvidia.com>
|
||||
Link: https://lore.kernel.org/r/f57ad0f8fdf663465bca74467c344dfa305a3199.1675305696.git.limings@nvidia.com
|
||||
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
|
||||
---
|
||||
drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
|
||||
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
|
||||
@@ -451,6 +451,7 @@ static const struct acpi_device_id sdhci
|
||||
},
|
||||
{}
|
||||
};
|
||||
+MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids);
|
||||
#endif
|
||||
|
||||
static int dwcmshc_probe(struct platform_device *pdev)
|
||||
@ -24,7 +24,7 @@ Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
|
||||
|
||||
--- a/drivers/mmc/core/core.c
|
||||
+++ b/drivers/mmc/core/core.c
|
||||
@@ -1364,6 +1364,8 @@ void mmc_power_off(struct mmc_host *host
|
||||
@@ -1369,6 +1369,8 @@ void mmc_power_off(struct mmc_host *host
|
||||
|
||||
mmc_pwrseq_power_off(host);
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
TxDescStartAddrLow = 0x20,
|
||||
TxDescStartAddrHigh = 0x24,
|
||||
TxHDescStartAddrLow = 0x28,
|
||||
@@ -2140,6 +2142,22 @@ void r8169_apply_firmware(struct rtl8169
|
||||
@@ -2143,6 +2145,22 @@ void r8169_apply_firmware(struct rtl8169
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
static void rtl8168_config_eee_mac(struct rtl8169_private *tp)
|
||||
{
|
||||
/* Adjust EEE LED frequency */
|
||||
@@ -3247,6 +3265,8 @@ static void rtl_hw_start_8168h_1(struct
|
||||
@@ -3252,6 +3270,8 @@ static void rtl_hw_start_8168h_1(struct
|
||||
r8168_mac_ocp_write(tp, 0xc094, 0x0000);
|
||||
r8168_mac_ocp_write(tp, 0xc09e, 0x0000);
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
rtl_hw_aspm_clkreq_enable(tp, true);
|
||||
}
|
||||
|
||||
@@ -3699,6 +3719,8 @@ static void rtl_hw_start_8125b(struct rt
|
||||
@@ -3704,6 +3724,8 @@ static void rtl_hw_start_8125b(struct rt
|
||||
rtl_ephy_init(tp, e_info_8125b);
|
||||
rtl_hw_start_8125_common(tp);
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/drivers/net/ethernet/realtek/r8169_main.c
|
||||
+++ b/drivers/net/ethernet/realtek/r8169_main.c
|
||||
@@ -2142,6 +2142,22 @@ void r8169_apply_firmware(struct rtl8169
|
||||
@@ -2145,6 +2145,22 @@ void r8169_apply_firmware(struct rtl8169
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
static int rtl8169_led_configuration(struct rtl8169_private *tp)
|
||||
{
|
||||
u32 led_data;
|
||||
@@ -3719,6 +3735,7 @@ static void rtl_hw_start_8125b(struct rt
|
||||
@@ -3724,6 +3740,7 @@ static void rtl_hw_start_8125b(struct rt
|
||||
rtl_ephy_init(tp, e_info_8125b);
|
||||
rtl_hw_start_8125_common(tp);
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
||||
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
||||
@@ -7149,6 +7149,7 @@ int stmmac_dvr_probe(struct device *devi
|
||||
@@ -7152,6 +7152,7 @@ int stmmac_dvr_probe(struct device *devi
|
||||
{
|
||||
struct net_device *ndev = NULL;
|
||||
struct stmmac_priv *priv;
|
||||
@ -8,7 +8,7 @@
|
||||
u32 rxq;
|
||||
int i, ret = 0;
|
||||
|
||||
@@ -7157,6 +7158,9 @@ int stmmac_dvr_probe(struct device *devi
|
||||
@@ -7160,6 +7161,9 @@ int stmmac_dvr_probe(struct device *devi
|
||||
if (!ndev)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
|
||||
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
|
||||
@@ -1937,6 +1937,16 @@
|
||||
@@ -1939,6 +1939,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3566.dtsi
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3566.dtsi
|
||||
@@ -6,6 +6,13 @@
|
||||
compatible = "rockchip,rk3566";
|
||||
};
|
||||
|
||||
+&cpu0_opp_table {
|
||||
+ opp-1992000000 {
|
||||
+ opp-hz = /bits/ 64 <1992000000>;
|
||||
+ opp-microvolt = <1150000 1150000 1150000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&pipegrf {
|
||||
compatible = "rockchip,rk3566-pipe-grf", "syscon";
|
||||
};
|
||||
@ -1,14 +0,0 @@
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
||||
@@ -127,6 +127,11 @@
|
||||
opp-hz = /bits/ 64 <1800000000>;
|
||||
opp-microvolt = <1050000 1050000 1150000>;
|
||||
};
|
||||
+
|
||||
+ opp-1992000000 {
|
||||
+ opp-hz = /bits/ 64 <1992000000>;
|
||||
+ opp-microvolt = <1150000 1150000 1150000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
display_subsystem: display-subsystem {
|
||||
Loading…
Reference in New Issue
Block a user