Skip to content

Commit ec9fd49

Browse files
floatiousbjorn-helgaas
authored andcommitted
PCI: dw-rockchip: Don't wait for link since we can detect Link Up
The Root Complex specific device tree binding for pcie-dw-rockchip has the 'sys' interrupt marked as required. The driver requests the 'sys' IRQ unconditionally, and errors out if not provided. Thus, we can unconditionally set 'use_linkup_irq', so dw_pcie_host_init() doesn't wait for the link to come up. This will skip the wait for link up (since the bus will be enumerated once the link up IRQ is triggered), which reduces the bootup time. Link: https://lore.kernel.org/r/20250113-rockchip-no-wait-v1-1-25417f37b92f@kernel.org Signed-off-by: Niklas Cassel <cassel@kernel.org> [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
1 parent 0e0b45a commit ec9fd49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/dwc/pcie-dw-rockchip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
478478

479479
pp = &rockchip->pci.pp;
480480
pp->ops = &rockchip_pcie_host_ops;
481+
pp->use_linkup_irq = true;
481482

482483
ret = dw_pcie_host_init(pp);
483484
if (ret) {

0 commit comments

Comments
 (0)