[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1428390266.14169.1.camel@axtens.net>
Date: Tue, 07 Apr 2015 17:04:26 +1000
From: Daniel Axtens <dja@...ens.net>
To: Yijing Wang <wangyijing@...wei.com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Jiang Liu <jiang.liu@...ux.intel.com>,
linux-pci@...r.kernel.org, Yinghai Lu <yinghai@...nel.org>,
linux-kernel@...r.kernel.org, Marc Zyngier <marc.zyngier@....com>,
linux-arm-kernel@...ts.infradead.org,
Russell King <linux@....linux.org.uk>, x86@...nel.org,
Thomas Gleixner <tglx@...utronix.de>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Rusty Russell <rusty@...tcorp.com.au>,
Tony Luck <tony.luck@...el.com>, linux-ia64@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Guan Xuetao <gxt@...c.pku.edu.cn>, linux-alpha@...r.kernel.org,
linux-m68k@...ts.linux-m68k.org, Liviu Dudau <liviu@...au.co.uk>,
Arnd Bergmann <arnd@...db.de>,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: Re: [PATCH v9 14/30] PCI: Introduce pci_host_bridge_ops to support
host specific operations
On Fri, 2015-04-03 at 17:25 +0800, Yijing Wang wrote:
> Now we have weak functions like pcibios_root_bridge_prepare()
> to setup pci host bridge, We could introduce pci_host_bridge_ops
> which contain host bridge specific ops to setup pci_host_bridge.
> Then host bridge driver could add pci_host_bridge_ops hooks
> intead of weak function to setup pci_host_bridge.
> This patch add following pci_host_bridge_ops hooks:
>
> pci_host_bridge_ops {
> struct pci_ops *ops;
Trivial nit, but this is 'struct pci_ops *pci_ops' in the code below.
> +struct pci_host_bridge;
> +struct pci_host_bridge_ops {
> + struct pci_ops *pci_ops;
> + int (*prepare)(struct pci_host_bridge *host);
> + void (*set_root_bus_speed)(struct pci_host_bridge *host);
> + int (*scan_bus)(struct pci_host_bridge *host);
> +};
> +
Regards,
Daniel
Download attachment "signature.asc" of type "application/pgp-signature" (861 bytes)
Powered by blists - more mailing lists