提交 d3a54014 编写于 作者: B Benjamin Herrenschmidt 提交者: Jesse Barnes

PCI: Add legacy_io/mem to all busses

Currently, only PHBs get the legacy_* files, which makes it tricky for
userland to get access to the legacy space.  This commit exposes them in
every bus, since even child buses may forward legacy cycles if
configured properly.
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 1ca88797
......@@ -158,6 +158,10 @@ void pci_bus_add_devices(struct pci_bus *bus)
dev_err(&dev->dev,
"Error creating cpulistaffinity"
" file, continuing...\n");
/* Create legacy_io and legacy_mem files for this bus */
pci_create_legacy_files(child_bus);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册