]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hv: Decouple the func definition in hv_dr_state from VSP message
authorLong Li <longli@microsoft.com>
Wed, 26 Feb 2020 05:06:07 +0000 (21:06 -0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 6 Mar 2020 10:18:06 +0000 (10:18 +0000)
commit01c229cab30fb3a7f892d286fb56e94e48dd55fd
tree27dccb39e32c1b441c1f0a61391e75b97ca572d7
parent1580f7b0298c24c0af1e0fcef365ea5886a30bf1
PCI: hv: Decouple the func definition in hv_dr_state from VSP message

hv_dr_state is used to find present PCI devices on the bus. The structure
reuses struct pci_function_description from VSP message to describe a
device.

To prepare support for pci_function_description v2, decouple this
dependence in hv_dr_state so it can work with both v1 and v2 VSP messages.

There is no functionality change.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
drivers/pci/controller/pci-hyperv.c