PCI: dw-rockchip: Don't wait for link since we can detect Link Up
authorNiklas Cassel <cassel@kernel.org>
Mon, 13 Jan 2025 10:59:34 +0000 (11:59 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 18 Jan 2025 17:35:25 +0000 (11:35 -0600)
commitec9fd499b9c60a187ac8d6414c3c343c77d32e42
tree9892768f16cb763d70922886c74e60cc13c28371
parent0e0b45ab5d770a748487ba0ae8f77d1fb0f0de3e
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>
drivers/pci/controller/dwc/pcie-dw-rockchip.c