mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
69dd5a788f
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.37 Added: generic/hack-6.6/900-fix-build-to-handle-return-value.patch[1] Manually rebased: generic/pending-6.6/834-ledtrig-libata.patch Removed upstreamed: bcm27xx/patches-6.6/950-0398-drm-panel-panel-ilitek9881c-Use-cansleep-methods.patch[2] All other patches automatically rebased. 1. Patch suggested by @DragonBluep to circumvent upstream breakage of kernel 6.6.37 compilation. See comments in https://github.com/openwrt/openwrt/pull/15879 for additional discussion. 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.37&id=1618f7a875ffd916596392fd29880c0429b8af60 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/15879 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From fc20eb4e650bf793bd6b3d804a63b67085c55f08 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Fri, 22 Mar 2024 14:22:55 +0000
|
|
Subject: [PATCH 0988/1085] drivers: sdhci-brcmstb: work around mystery CQE
|
|
CMD_IDLE_TIMER trampling
|
|
|
|
For unknown reasons the controller seems to reset the idle polling timer
|
|
interval on CQE enable/disable to 8 clocks which is extremely short.
|
|
|
|
Just use the reset value in the eMMC spec (4096 clock periods which at
|
|
200MHz is ~20uS).
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
drivers/mmc/host/sdhci-brcmstb.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/mmc/host/sdhci-brcmstb.c
|
|
+++ b/drivers/mmc/host/sdhci-brcmstb.c
|
|
@@ -339,6 +339,7 @@ static void sdhci_brcmstb_dumpregs(struc
|
|
static void sdhci_brcmstb_cqe_enable(struct mmc_host *mmc)
|
|
{
|
|
struct sdhci_host *host = mmc_priv(mmc);
|
|
+ struct cqhci_host *cq_host = mmc->cqe_private;
|
|
u32 reg;
|
|
|
|
reg = sdhci_readl(host, SDHCI_PRESENT_STATE);
|
|
@@ -348,6 +349,9 @@ static void sdhci_brcmstb_cqe_enable(str
|
|
}
|
|
|
|
sdhci_cqe_enable(mmc);
|
|
+
|
|
+ /* Reset CMD13 polling timer back to eMMC specification default */
|
|
+ cqhci_writel(cq_host, 0x00011000, CQHCI_SSC1);
|
|
}
|
|
|
|
static const struct cqhci_host_ops sdhci_brcmstb_cqhci_ops = {
|