mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
pci: apple: Initialize only enabled ports
The Linux devicetrees for Apple silicon devices are after review feedback switching from deleting unused PCIe ports to disabling them. Link: https://lore.kernel.org/asahi/1ea2107a-bb86-8c22-0bbc-82c453ab08ce@linaro.org/ Signed-off-by: Janne Grunau <j@jannau.net> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
parent
3d0f2e37c5
commit
6ee2c8ad58
@ -315,6 +315,8 @@ static int apple_pcie_probe(struct udevice *dev)
|
||||
for (of_port = ofnode_first_subnode(dev_ofnode(dev));
|
||||
ofnode_valid(of_port);
|
||||
of_port = ofnode_next_subnode(of_port)) {
|
||||
if (!ofnode_is_enabled(of_port))
|
||||
continue;
|
||||
ret = apple_pcie_setup_port(pcie, of_port);
|
||||
if (ret) {
|
||||
dev_err(pcie->dev, "Port %d setup fail: %d\n", i, ret);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user