]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/sriov: Move SR-IOV into a separate file
authorOliver O'Halloran <oohall@gmail.com>
Wed, 22 Jul 2020 06:57:04 +0000 (16:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 13:34:22 +0000 (23:34 +1000)
commit3ac3b84e13011ee1615d7a3af7d213c7e030d324
tree378510b23e4f6be8d12ca6779ecebbc423fd07e8
parentd924640f52e5c6554a3c6534248063078f481185
powerpc/powernv/sriov: Move SR-IOV into a separate file

pci-ioda.c is getting a bit unwieldly due to the amount of stuff jammed in
there. The SR-IOV support can be extracted easily enough and is mostly
standalone, so move it into a separate file.

This patch also moves the PowerNV SR-IOV specific fields from pci_dn and
moves them into a platform specific structure. I'm not sure how they ended
up in there in the first place, but leaking platform specifics into common
code has proven to be a terrible idea so far so lets stop doing that.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200722065715.1432738-5-oohall@gmail.com
arch/powerpc/include/asm/device.h
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci-sriov.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/pci.h