]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: rockchip-host: Wait 100ms after reset before starting configuration
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 13 Apr 2024 00:41:20 +0000 (09:41 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Jul 2024 23:28:31 +0000 (18:28 -0500)
commit70a7bfb1e515b03e54491254a4375cdfb9515227
treed22055627a8ef7246ee5573b7caad109fc7cd539
parentc47f90be4c89d14051d43f0c88eafddf67c834ea
PCI: rockchip-host: Wait 100ms after reset before starting configuration

PCIe r6.0, sec 6.6.1, states that the host should wait for at least 100
msec from the end of a conventional reset (PERST# is de-asserted) before
sending a configuration request to ensure that the device is able to
respond with a "Request Retry Status" completion.

Add the PCIE_T_RRS_READY_MS macro to define this wait time and modify
rockchip_pcie_host_init_port() to add this 100ms sleep after deasserting
PERST# using the ep_gpio GPIO.

Link: https://lore.kernel.org/linux-pci/20240413004120.1099089-3-dlemoal@kernel.org
Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/pcie-rockchip-host.c
drivers/pci/pci.h