rockchip-pcie-timeout.patch 802 B

12345678910111213141516
  1. 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
  2. --- linux-6.0.11.orig/drivers/pci/controller/pcie-rockchip-host.c 2022-12-02 17:43:18.000000000 +0100
  3. +++ linux-6.0.11/drivers/pci/controller/pcie-rockchip-host.c 2022-12-24 11:12:25.753213273 +0100
  4. @@ -327,10 +327,10 @@
  5. gpiod_set_value_cansleep(rockchip->ep_gpio, 1);
  6. - /* 500ms timeout value should be enough for Gen1/2 training */
  7. + /* 1000ms timeout value should be enough for Gen1/2 training */
  8. err = readl_poll_timeout(rockchip->apb_base + PCIE_CLIENT_BASIC_STATUS1,
  9. status, PCIE_LINK_UP(status), 20,
  10. - 500 * USEC_PER_MSEC);
  11. + 1000 * USEC_PER_MSEC);
  12. if (err) {
  13. dev_err(dev, "PCIe link training gen1 timeout!\n");
  14. goto err_power_off_phy;