mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
1c28058710
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.148
Removed upstreamed:
generic/hack-5.15/321-powerpc_crtsavres_prereq.patch[1]
Manually rebased:
target/linux/octeontx/patches-5.15/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch[2]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.148&id=0b11a145eb00d51f7ef18cfcae587b93f9adb1e9
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit?h=v5.15.148&id=b67064bd372300a75293efbbc70624996dccffd4
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit 99c9d8abd6
)
[Refresh on OpenWrt 23.05]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From: qizhong cheng <qizhong.cheng@mediatek.com>
|
|
Date: Mon, 27 Dec 2021 21:31:10 +0800
|
|
Subject: [PATCH] PCI: mediatek: Assert PERST# for 100ms for power and clock to
|
|
stabilize
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Described in PCIe CEM specification sections 2.2 (PERST# Signal) and
|
|
2.2.1 (Initial Power-Up (G3 to S0)). The deassertion of PERST# should
|
|
be delayed 100ms (TPVPERL) for the power and clock to become stable.
|
|
|
|
Link: https://lore.kernel.org/r/20211227133110.14500-1-qizhong.cheng@mediatek.com
|
|
Signed-off-by: qizhong cheng <qizhong.cheng@mediatek.com>
|
|
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
|
|
Acked-by: Pali Rohár <pali@kernel.org>
|
|
---
|
|
|
|
--- a/drivers/pci/controller/pcie-mediatek.c
|
|
+++ b/drivers/pci/controller/pcie-mediatek.c
|
|
@@ -708,6 +708,13 @@ static int mtk_pcie_startup_port_v2(stru
|
|
*/
|
|
writel(PCIE_LINKDOWN_RST_EN, port->base + PCIE_RST_CTRL);
|
|
|
|
+ /*
|
|
+ * Described in PCIe CEM specification sections 2.2 (PERST# Signal) and
|
|
+ * 2.2.1 (Initial Power-Up (G3 to S0)). The deassertion of PERST# should
|
|
+ * be delayed 100ms (TPVPERL) for the power and clock to become stable.
|
|
+ */
|
|
+ msleep(100);
|
|
+
|
|
/* De-assert PHY, PE, PIPE, MAC and configuration reset */
|
|
val = readl(port->base + PCIE_RST_CTRL);
|
|
val |= PCIE_PHY_RSTB | PCIE_PERSTB | PCIE_PIPE_SRSTB |
|