projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0f2e3
)
pci: apple: Initialize only enabled ports
author
Janne Grunau
<j@jannau.net>
Mon, 13 Mar 2023 13:46:11 +0000
(14:46 +0100)
committer
Tom Rini
<trini@konsulko.com>
Wed, 29 Mar 2023 17:30:29 +0000
(13:30 -0400)
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>
drivers/pci/pcie_apple.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pcie_apple.c
b/drivers/pci/pcie_apple.c
index
9b08e1e
..
b934fdb
100644
(file)
--- a/
drivers/pci/pcie_apple.c
+++ b/
drivers/pci/pcie_apple.c
@@
-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);