[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49d7ebeb4617e9a1e42ef1608da6a907201c6c38.camel@sipsolutions.net>
Date: Fri, 20 Jan 2023 09:22:56 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Vincent Whitchurch <vincent.whitchurch@...s.com>,
Richard Weinberger <richard@....at>,
Anton Ivanov <anton.ivanov@...bridgegreys.com>
Cc: linux-um@...ts.infradead.org, linux-pci@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...s.com
Subject: Re: [PATCH] um: virt-pci: implement pcibios_get_phb_of_node()
On Fri, 2023-01-20 at 09:02 +0100, Vincent Whitchurch wrote:
> Implement pcibios_get_phb_of_node() as x86 does in order to allow PCI
> busses to be associated with devicetree nodes.
>
> Signed-off-by: Vincent Whitchurch <vincent.whitchurch@...s.com>
> ---
> arch/um/drivers/virt-pci.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c
> index 3ac220dafec4..6884e1be38e4 100644
> --- a/arch/um/drivers/virt-pci.c
> +++ b/arch/um/drivers/virt-pci.c
> @@ -533,6 +533,25 @@ static void um_pci_irq_vq_cb(struct virtqueue *vq)
> }
> }
>
> +/* Copied from arch/x86/kernel/devicetree.c */
> +struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
Hah. I was going to ask how that works without any ifdef or anything,
but then I found the __weak version :-)
Acked-by: Johannes Berg <johannes@...solutions.net>
Or maybe I should finally put on my tentative ARCH=um maintainer hat and
start taking patches :)
johannes
Powered by blists - more mailing lists