From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: julien@xen.org, sstabellini@kernel.org,
oleksandr_tyshchenko@epam.com, volodymyr_babchuk@epam.com,
Artem_Mygaiev@epam.com, roger.pau@citrix.com, jbeulich@suse.com,
andrew.cooper3@citrix.com, george.dunlap@citrix.com,
paul@xen.org, bertrand.marquis@arm.com, rahul.singh@arm.com,
Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>,
Julien Grall <jgrall@amazon.com>
Subject: [PATCH v7 1/7] xen/arm: rename DEVICE_PCI to DEVICE_PCI_HOSTBRIDGE
Date: Wed, 24 Nov 2021 09:59:36 +0200 [thread overview]
Message-ID: <20211124075942.2645445-2-andr2000@gmail.com> (raw)
In-Reply-To: <20211124075942.2645445-1-andr2000@gmail.com>
From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
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>
---
New in v6
---
xen/arch/arm/pci/pci-host-generic.c | 2 +-
xen/arch/arm/pci/pci-host-zynqmp.c | 2 +-
xen/arch/arm/pci/pci.c | 2 +-
xen/include/asm-arm/device.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/arch/arm/pci/pci-host-generic.c b/xen/arch/arm/pci/pci-host-generic.c
index 33457fbe9615..46de6e43cc72 100644
--- a/xen/arch/arm/pci/pci-host-generic.c
+++ b/xen/arch/arm/pci/pci-host-generic.c
@@ -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
diff --git a/xen/arch/arm/pci/pci-host-zynqmp.c b/xen/arch/arm/pci/pci-host-zynqmp.c
index 61a9807d3d58..516982bca833 100644
--- a/xen/arch/arm/pci/pci-host-zynqmp.c
+++ b/xen/arch/arm/pci/pci-host-zynqmp.c
@@ -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
diff --git a/xen/arch/arm/pci/pci.c b/xen/arch/arm/pci/pci.c
index 082c14e127a8..78b97beaef12 100644
--- a/xen/arch/arm/pci/pci.c
+++ b/xen/arch/arm/pci/pci.c
@@ -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.
diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h
index 3782660751b6..086dde13eb6b 100644
--- a/xen/include/asm-arm/device.h
+++ b/xen/include/asm-arm/device.h
@@ -37,7 +37,7 @@ enum device_class
DEVICE_SERIAL,
DEVICE_IOMMU,
DEVICE_GIC,
- DEVICE_PCI,
+ DEVICE_PCI_HOSTBRIDGE,
/* Use for error */
DEVICE_UNKNOWN,
};
--
2.25.1
next prev parent reply other threads:[~2021-11-24 8:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 7:59 [PATCH v7 0/7] PCI devices passthrough on Arm, part 2 Oleksandr Andrushchenko
2021-11-24 7:59 ` Oleksandr Andrushchenko [this message]
2021-11-24 9:18 ` [PATCH v7 1/7] xen/arm: rename DEVICE_PCI to DEVICE_PCI_HOSTBRIDGE Jiamei Xie
2021-11-24 11:00 ` Rahul Singh
2021-11-25 1:09 ` Henry Wang
2021-11-24 7:59 ` [PATCH v7 2/7] xen/arm: add pci-domain for disabled devices Oleksandr Andrushchenko
2021-11-24 11:20 ` Rahul Singh
2021-12-08 17:24 ` Julien Grall
2021-11-24 7:59 ` [PATCH v7 3/7] xen/arm: setup MMIO range trap handlers for hardware domain Oleksandr Andrushchenko
2021-12-08 16:48 ` Julien Grall
2021-12-08 18:56 ` Oleksandr Andrushchenko
2021-11-24 7:59 ` [PATCH v7 4/7] xen/arm: account IO handler for emulated PCI host bridge Oleksandr Andrushchenko
2021-12-08 16:53 ` Julien Grall
2021-12-08 18:57 ` Oleksandr Andrushchenko
2021-12-09 6:55 ` Oleksandr Andrushchenko
2021-11-24 7:59 ` [PATCH v7 5/7] xen/arm: do not map PCI ECAM and MMIO space to Domain-0's p2m Oleksandr Andrushchenko
2021-12-08 17:20 ` Julien Grall
2021-12-08 18:58 ` Oleksandr Andrushchenko
2021-11-24 7:59 ` [PATCH v7 6/7] xen/arm: process pending vPCI map/unmap operations Oleksandr Andrushchenko
2021-11-24 11:35 ` Rahul Singh
2021-12-03 12:54 ` Julien Grall
2021-12-03 16:10 ` Durrant, Paul
2021-12-07 11:57 ` Oleksandr Andrushchenko
2021-12-08 16:39 ` Julien Grall
2021-11-24 7:59 ` [PATCH v7 7/7] xen/arm: do not use void pointer in pci_host_common_probe Oleksandr Andrushchenko
2021-11-24 11:02 ` Rahul Singh
2021-12-03 13:01 ` [PATCH v7 0/7] PCI devices passthrough on Arm, part 2 Julien Grall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211124075942.2645445-2-andr2000@gmail.com \
--to=andr2000@gmail.com \
--cc=Artem_Mygaiev@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=jgrall@amazon.com \
--cc=julien@xen.org \
--cc=oleksandr_andrushchenko@epam.com \
--cc=oleksandr_tyshchenko@epam.com \
--cc=paul@xen.org \
--cc=rahul.singh@arm.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=volodymyr_babchuk@epam.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.