xen/arm: rename DEVICE_PCI to DEVICE_PCI_HOSTBRIDGE
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Wed, 24 Nov 2021 07:59:36 +0000 (09:59 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 3 Dec 2021 12:59:18 +0000 (12:59 +0000)
To better reflect the nature of the device type and not to make any
confusion rename DEVICE_PCI to DEVICE_PCI_HOSTBRIDGE which it
really is.

Suggested-by: Julien Grall <julien@xen.org>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Jiamei xie <jiamei.xie@arm.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
xen/arch/arm/pci/pci-host-generic.c
xen/arch/arm/pci/pci-host-zynqmp.c
xen/arch/arm/pci/pci.c
xen/include/asm-arm/device.h

index 33457fbe9615a631d3666f09150fdb7eba9c8d6c..46de6e43cc722adda4a20aa9e1cead2a528ddca3 100644 (file)
@@ -32,7 +32,7 @@ static int __init pci_host_generic_probe(struct dt_device_node *dev,
     return pci_host_common_probe(dev, &pci_generic_ecam_ops);
 }
 
-DT_DEVICE_START(pci_gen, "PCI HOST GENERIC", DEVICE_PCI)
+DT_DEVICE_START(pci_gen, "PCI HOST GENERIC", DEVICE_PCI_HOSTBRIDGE)
 .dt_match = gen_pci_dt_match,
 .init = pci_host_generic_probe,
 DT_DEVICE_END
index 61a9807d3d58747ad844bef8e31dcefba866a598..516982bca833449a3fea2600655e7f533e716c50 100644 (file)
@@ -49,7 +49,7 @@ static int __init pci_host_generic_probe(struct dt_device_node *dev,
     return pci_host_common_probe(dev, &nwl_pcie_ops);
 }
 
-DT_DEVICE_START(pci_gen, "PCI HOST ZYNQMP", DEVICE_PCI)
+DT_DEVICE_START(pci_gen, "PCI HOST ZYNQMP", DEVICE_PCI_HOSTBRIDGE)
 .dt_match = nwl_pcie_dt_match,
 .init = pci_host_generic_probe,
 DT_DEVICE_END
index 082c14e127a86d725e3ac140daf50b258f4be636..78b97beaef12e85771602af4b296e075596affb7 100644 (file)
@@ -46,7 +46,7 @@ static int __init dt_pci_init(void)
 
     dt_for_each_device_node(dt_host, np)
     {
-        rc = device_init(np, DEVICE_PCI, NULL);
+        rc = device_init(np, DEVICE_PCI_HOSTBRIDGE, NULL);
         /*
          * Ignore the following error codes:
          *   - EBADF: Indicate the current device is not a pci device.
index 7bf040560363f18f24015e5435a3c79b2ac3ba72..b5d451e08776a1b85dc426e59db5ee1653027cca 100644 (file)
@@ -34,7 +34,7 @@ enum device_class
     DEVICE_SERIAL,
     DEVICE_IOMMU,
     DEVICE_GIC,
-    DEVICE_PCI,
+    DEVICE_PCI_HOSTBRIDGE,
     /* Use for error */
     DEVICE_UNKNOWN,
 };