* Adding an ops to struct pci_host_bridge?
@ 2014-12-19 0:49 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2014-12-19 0:49 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, benh
Hi,
On powerpc, we have a possibly-programmable device (CXL) which
we're making look a lot like a PCI bus containing devices. Rather than
hacking "if (is_really_cxl(dev))" into every powerpc pcibios_* routine,
Ben Herrenschmidt suggested moving from pcibios_* to an ops structure
inside pci_host_bridge.
In transition, it'd be up to the arch (ie. powerpc) to call
find_pci_host_bridge(dev->bus)->ops->xxx from their pcibios_ functions,
but if there's general interest other archs could start doing it too.
If this seems like a nice idea, we can discuss which pcibios_ functions
make sense to place into ops.
Thanks,
Rusty.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-19 1:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-19 0:49 Adding an ops to struct pci_host_bridge? Rusty Russell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.