summaryrefslogtreecommitdiff
path: root/target/linux/patches/6.0.15/rockchip-pcie-timeout.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-12-26 13:46:20 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-12-26 13:46:20 +0100
commit134df1932fdb77a54029d8e1028d27a00f911db9 (patch)
treee56bceec9fe1c0a455f6378a13c3f93651316304 /target/linux/patches/6.0.15/rockchip-pcie-timeout.patch
parentc043589e2d49f6a13907d300260e9b4236fdac09 (diff)
linux: update to 6.0.15, reduce mini.config from rockpi4-plus
Diffstat (limited to 'target/linux/patches/6.0.15/rockchip-pcie-timeout.patch')
-rw-r--r--target/linux/patches/6.0.15/rockchip-pcie-timeout.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/6.0.15/rockchip-pcie-timeout.patch b/target/linux/patches/6.0.15/rockchip-pcie-timeout.patch
new file mode 100644
index 000000000..2ef7df2da
--- /dev/null
+++ b/target/linux/patches/6.0.15/rockchip-pcie-timeout.patch
@@ -0,0 +1,16 @@
+diff -Nur linux-6.0.11.orig/drivers/pci/controller/pcie-rockchip-host.c linux-6.0.11/drivers/pci/controller/pcie-rockchip-host.c
+--- linux-6.0.11.orig/drivers/pci/controller/pcie-rockchip-host.c 2022-12-02 17:43:18.000000000 +0100
++++ linux-6.0.11/drivers/pci/controller/pcie-rockchip-host.c 2022-12-24 11:12:25.753213273 +0100
+@@ -327,10 +327,10 @@
+
+ gpiod_set_value_cansleep(rockchip->ep_gpio, 1);
+
+- /* 500ms timeout value should be enough for Gen1/2 training */
++ /* 1000ms timeout value should be enough for Gen1/2 training */
+ err = readl_poll_timeout(rockchip->apb_base + PCIE_CLIENT_BASIC_STATUS1,
+ status, PCIE_LINK_UP(status), 20,
+- 500 * USEC_PER_MSEC);
++ 1000 * USEC_PER_MSEC);
+ if (err) {
+ dev_err(dev, "PCIe link training gen1 timeout!\n");
+ goto err_power_off_phy;