From: Rusty Russell <rusty@rustcorp.com.au>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, <benh@kernel.crashing.org>
Subject: Adding an ops to struct pci_host_bridge?
Date: Fri, 19 Dec 2014 11:19:20 +1030 [thread overview]
Message-ID: <878ui4tqen.fsf@rustcorp.com.au> (raw)
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.
reply other threads:[~2014-12-19 1:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878ui4tqen.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=benh@kernel.crashing.org \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.