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)
commitf9ad0f361cf3b58fd26d409c6150126547259772
tree27dccb39e32c1b441c1f0a61391e75b97ca572d7
parent42c3d41832ef4fcf60aaa6f748de01ad99572adf
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