Rob Herring
b2f75a41ea
PCI: host-generic: Eliminate pci_host_common_probe wrappers
...
Most ECAM host drivers are just different pci_ecam_ops which can be DT
match table data. That's already the case in some cases, but let's
do that for all the ECAM drivers. Then we can use
of_device_get_match_data() in pci_host_common_probe() and eliminate the
probe wrapper functions and use pci_host_common_probe() directly for
probe.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected] >
Signed-off-by: Lorenzo Pieralisi <[email protected] >
Acked-by: Bjorn Helgaas <[email protected] >
Cc: Zhou Wang <[email protected] >
Cc: Lorenzo Pieralisi <[email protected] >
Cc: Andrew Murray <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: Robert Richter <[email protected] >
Cc: Marc Gonzalez <[email protected] >
Cc: Mans Rullgard <[email protected] >
Cc: [email protected]
Cc: [email protected]
2020-05-07 09:29:43 +01:00
Rob Herring
0c59c06a7c
PCI: host-generic: Support building as modules
...
Enable building host-generic and its host-common dependency as a
module.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected] >
Signed-off-by: Lorenzo Pieralisi <[email protected] >
Acked-by: Will Deacon <[email protected] >
Acked-by: Bjorn Helgaas <[email protected] >
Cc: Lorenzo Pieralisi <[email protected] >
Cc: Andrew Murray <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: [email protected]
Cc: [email protected]
2020-05-01 16:29:27 +01:00
Rob Herring
0b104773b4
PCI: Constify struct pci_ecam_ops
...
struct pci_ecam_ops is typically DT match table data which is defined to
be const. It's also best practice for ops structs to be const. Ideally,
we'd make struct pci_ops const as well, but that becomes pretty
invasive, so for now we just cast it where needed.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected] >
Signed-off-by: Lorenzo Pieralisi <[email protected] >
Acked-by: Bjorn Helgaas <[email protected] >
Acked-by: Catalin Marinas <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: Lorenzo Pieralisi <[email protected] >
Cc: Andrew Murray <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: "Rafael J. Wysocki" <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Jonathan Chocron <[email protected] >
Cc: Zhou Wang <[email protected] >
Cc: Robert Richter <[email protected] >
Cc: Toan Le <[email protected] >
Cc: Marc Gonzalez <[email protected] >
Cc: Mans Rullgard <[email protected] >
Cc: [email protected]
2020-05-01 16:28:59 +01:00
Bjorn Helgaas
74356addc0
PCI: Fix comment typos
...
Fix spelling errors and format function comments consistently. Changes
whitespace and comments only; no functional change intended.
Signed-off-by: Bjorn Helgaas <[email protected] >
Reviewed-by: Mukesh Ojha <[email protected] >
2019-04-13 11:17:15 -05:00
Shawn Lin
6e0832fa43
PCI: Collect all native drivers under drivers/pci/controller/
...
Native PCI drivers for root complex devices were originally all in
drivers/pci/host/. Some of these devices can also be operated in endpoint
mode. Drivers for endpoint mode didn't seem to fit in the "host"
directory, so we put both the root complex and endpoint drivers in
per-device directories, e.g., drivers/pci/dwc/, drivers/pci/cadence/, etc.
These per-device directories contain trivial Kconfig and Makefiles and
clutter drivers/pci/. Make a new drivers/pci/controllers/ directory and
collect all the device-specific drivers there.
No functional change intended.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shawn Lin <[email protected] >
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <[email protected] >
2018-06-08 07:50:11 -05:00