Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1458470
| From | Hanjun Guo <guohanjun@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH 06/10] msi: platform: make platform_msi_create_device_domain() ACPI aware |
| Date | 2016-08-09 09:20 +0200 |
| Message-ID | <s49up-4pG-21@gated-at.bofh.it> (permalink) |
| References | <s49kJ-4m3-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Hanjun Guo <hanjun.guo@linaro.org>
With the platform msi domain created for ITS, irqchip such as
mbi-gen connecting ITS, which needs ctreate its own irqdomain.
Fortunately with the platform msi support upstreamed by Marc,
we just need to add minor code to make it run properly.
platform_msi_create_device_domain() is almost ready for ACPI use
except of_node_to_fwnode() is for dt only, make it ACPI aware then
things will work in both DTS and ACPI.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
drivers/base/platform-msi.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index d8b28d3..5603756 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -339,16 +339,17 @@ platform_msi_create_device_domain(struct device *dev,
{
struct platform_msi_priv_data *data;
struct irq_domain *domain;
+ struct fwnode_handle *fwnode;
int err;
data = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg);
if (IS_ERR(data))
return NULL;
+ fwnode = dev->of_node ? &dev->of_node->fwnode : dev->fwnode;
data->host_data = host_data;
domain = irq_domain_create_hierarchy(dev->msi_domain, 0, nvec,
- of_node_to_fwnode(dev->of_node),
- ops, data);
+ fwnode, ops, data);
if (!domain)
goto free_priv;
--
1.7.12.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 00/10] ACPI platform MSI, interrupt producer and its example mbi-gen Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:20 +0200 [RFC PATCH 08/10] irqchip: mbigen: drop module owner Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:20 +0200 [RFC PATCH 06/10] msi: platform: make platform_msi_create_device_domain() ACPI aware Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:20 +0200 [RFC PATCH 10/10] irqchip: mbigen: Add ACPI support Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:20 +0200 [RFC PATCH 04/10] irqchip: gicv3-its: platform-msi: scan MADT to create platform msi domain Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:20 +0200 [RFC PATCH 07/10] ACPI: irq: introduce interrupt producer Hanjun Guo <guohanjun@huawei.com> - 2016-08-09 09:30 +0200
csiph-web