linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Architecture independent pcibios?
@ 2013-10-08 14:42 Liviu Dudau
  2013-10-08 16:32 ` Bjorn Helgaas
  0 siblings, 1 reply; 17+ messages in thread
From: Liviu Dudau @ 2013-10-08 14:42 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, Catalin Marinas, Olof Johansson, Arnd Bergmann,
	Michal Simek, Benjamin Herrenschmidt

Hello,

I am working on adding PCIe support for a new architecture and looking
at various existing implementations of pcibios functions I've realised
that some architectures share a lot of common code. As I don't like to
repeat the pattern again without any good reasons, I am wondering if
there is any appetite for carving out those common functions into
a generic place under drivers/pci/pcibios.c where they can be reused.

Things that I am specifically looking at are pcibios_{alloc,free}_controller,
pci_process_bridge_OF_ranges and anything that will make adding support
for PCI/PCIe in a new architecture easier. Candidates for promoting
to a generic place are the functions found in both powerpc and microblaze
as they seem to be mostly identical, they support DT bindings and are
64bits ready.

Any comments on why that is (possibly not) a great idea and on the chance
that a patch will get reviewed/accepted?

Best regards,
Liviu Dudau

ARM Ltd Linux Platforms engineer

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-10-15 13:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 14:42 [RFC] Architecture independent pcibios? Liviu Dudau
2013-10-08 16:32 ` Bjorn Helgaas
2013-10-08 16:55   ` Rob Herring
2013-10-08 17:20     ` Andrew Murray
2013-10-08 20:32       ` Benjamin Herrenschmidt
2013-10-08 20:28     ` Benjamin Herrenschmidt
2013-10-09  9:09       ` Liviu Dudau
2013-10-09 10:04         ` Liviu Dudau
2013-10-09 10:37         ` Benjamin Herrenschmidt
2013-10-09 10:45           ` Liviu Dudau
2013-10-09 14:30             ` Bjorn Helgaas
2013-10-09 16:23               ` Liviu Dudau
2013-10-15 11:48         ` Grant Likely
2013-10-08 17:13   ` Liviu Dudau
2013-10-08 18:58     ` Bjorn Helgaas
2013-10-08 20:31     ` Benjamin Herrenschmidt
2013-10-09 11:52       ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).