mbox series

[0/3] PCI: move DT PCI functions to PCI core

Message ID 20180104211215.11344-1-robh@kernel.org (mailing list archive)
Headers show
Series PCI: move DT PCI functions to PCI core | expand

Message

Rob Herring (Arm) Jan. 4, 2018, 9:12 p.m. UTC
Most subsystem specific functions have been moved into the respective
subsystems. Only PCI and networking remain. This series moves most of the
PCI related code to drivers/pci/of.c. Some bus address functions for PCI
remain in of/address.c because we don't have infrastructure to split up
the per bus helper functions.

I expect Bjorn to take this series, so PPC maintainers please ack.

Rob

Rob Herring (3):
  PCI: move OF related PCI functions into PCI core
  powerpc/pci: use of_irq_parse_and_map_pci helper
  PCI: make of_irq_parse_pci static

 arch/arm/mach-mvebu/Kconfig      |   1 -
 arch/powerpc/kernel/pci-common.c |   8 +-
 drivers/of/Kconfig               |  16 --
 drivers/of/Makefile              |   2 -
 drivers/of/address.c             |   8 +-
 drivers/of/of_pci.c              | 384 -----------------------------
 drivers/of/of_pci_irq.c          | 131 ----------
 drivers/pci/of.c                 | 505 +++++++++++++++++++++++++++++++++++++++
 include/linux/of_pci.h           |   8 +-
 9 files changed, 510 insertions(+), 553 deletions(-)
 delete mode 100644 drivers/of/of_pci.c
 delete mode 100644 drivers/of/of_pci_irq.c

--
2.14.1

Comments

Bjorn Helgaas Jan. 17, 2018, 11:33 p.m. UTC | #1
On Thu, Jan 04, 2018 at 03:12:12PM -0600, Rob Herring wrote:
> Most subsystem specific functions have been moved into the respective
> subsystems. Only PCI and networking remain. This series moves most of the
> PCI related code to drivers/pci/of.c. Some bus address functions for PCI
> remain in of/address.c because we don't have infrastructure to split up
> the per bus helper functions.
> 
> I expect Bjorn to take this series, so PPC maintainers please ack.

I plan to merge this for v4.16, so PPC maintainers, this is your
chance to speak up :)

> Rob Herring (3):
>   PCI: move OF related PCI functions into PCI core
>   powerpc/pci: use of_irq_parse_and_map_pci helper
>   PCI: make of_irq_parse_pci static
> 
>  arch/arm/mach-mvebu/Kconfig      |   1 -
>  arch/powerpc/kernel/pci-common.c |   8 +-
>  drivers/of/Kconfig               |  16 --
>  drivers/of/Makefile              |   2 -
>  drivers/of/address.c             |   8 +-
>  drivers/of/of_pci.c              | 384 -----------------------------
>  drivers/of/of_pci_irq.c          | 131 ----------
>  drivers/pci/of.c                 | 505 +++++++++++++++++++++++++++++++++++++++
>  include/linux/of_pci.h           |   8 +-
>  9 files changed, 510 insertions(+), 553 deletions(-)
>  delete mode 100644 drivers/of/of_pci.c
>  delete mode 100644 drivers/of/of_pci_irq.c
> 
> --
> 2.14.1
Bjorn Helgaas Jan. 17, 2018, 11:55 p.m. UTC | #2
On Thu, Jan 04, 2018 at 03:12:12PM -0600, Rob Herring wrote:
> Most subsystem specific functions have been moved into the respective
> subsystems. Only PCI and networking remain. This series moves most of the
> PCI related code to drivers/pci/of.c. Some bus address functions for PCI
> remain in of/address.c because we don't have infrastructure to split up
> the per bus helper functions.
> 
> I expect Bjorn to take this series, so PPC maintainers please ack.
> 
> Rob
> 
> Rob Herring (3):
>   PCI: move OF related PCI functions into PCI core
>   powerpc/pci: use of_irq_parse_and_map_pci helper
>   PCI: make of_irq_parse_pci static
> 
>  arch/arm/mach-mvebu/Kconfig      |   1 -
>  arch/powerpc/kernel/pci-common.c |   8 +-
>  drivers/of/Kconfig               |  16 --
>  drivers/of/Makefile              |   2 -
>  drivers/of/address.c             |   8 +-
>  drivers/of/of_pci.c              | 384 -----------------------------
>  drivers/of/of_pci_irq.c          | 131 ----------
>  drivers/pci/of.c                 | 505 +++++++++++++++++++++++++++++++++++++++
>  include/linux/of_pci.h           |   8 +-
>  9 files changed, 510 insertions(+), 553 deletions(-)
>  delete mode 100644 drivers/of/of_pci.c
>  delete mode 100644 drivers/of/of_pci_irq.c

Applied to pci/dt-resources for v4.16, thanks!

I'll update this if necessary if PPC maintainers comment.
Michael Ellerman Jan. 19, 2018, 11:16 a.m. UTC | #3
Bjorn Helgaas <helgaas@kernel.org> writes:

> On Thu, Jan 04, 2018 at 03:12:12PM -0600, Rob Herring wrote:
>> Most subsystem specific functions have been moved into the respective
>> subsystems. Only PCI and networking remain. This series moves most of the
>> PCI related code to drivers/pci/of.c. Some bus address functions for PCI
>> remain in of/address.c because we don't have infrastructure to split up
>> the per bus helper functions.
>> 
>> I expect Bjorn to take this series, so PPC maintainers please ack.
>> 
>> Rob
>> 
>> Rob Herring (3):
>>   PCI: move OF related PCI functions into PCI core
>>   powerpc/pci: use of_irq_parse_and_map_pci helper
>>   PCI: make of_irq_parse_pci static
>> 
>>  arch/arm/mach-mvebu/Kconfig      |   1 -
>>  arch/powerpc/kernel/pci-common.c |   8 +-
>>  drivers/of/Kconfig               |  16 --
>>  drivers/of/Makefile              |   2 -
>>  drivers/of/address.c             |   8 +-
>>  drivers/of/of_pci.c              | 384 -----------------------------
>>  drivers/of/of_pci_irq.c          | 131 ----------
>>  drivers/pci/of.c                 | 505 +++++++++++++++++++++++++++++++++++++++
>>  include/linux/of_pci.h           |   8 +-
>>  9 files changed, 510 insertions(+), 553 deletions(-)
>>  delete mode 100644 drivers/of/of_pci.c
>>  delete mode 100644 drivers/of/of_pci_irq.c
>
> Applied to pci/dt-resources for v4.16, thanks!
>
> I'll update this if necessary if PPC maintainers comment.

Thanks. Seems fine, fingers crossed :)

cheers