Re: [PATCH v4 12/30] PCI: Introduce pci_host_bridge_ops to support host specific operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
- Subject: Re: [PATCH v4 12/30] PCI: Introduce pci_host_bridge_ops to support host specific operations
- From: Yijing Wang <wangyijing@xxxxxxxxxx>
- Date: Tue, 3 Mar 2015 16:08:29 +0800
- Cc: Jiang Liu <jiang.liu@xxxxxxxxxxxxxxx>, <linux-pci@xxxxxxxxxxxxxxx>, Yinghai Lu <yinghai@xxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, Marc Zyngier <marc.zyngier@xxxxxxx>, <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, <linux-ia64@xxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, "Guan Xuetao" <gxt@xxxxxxxxxxxxxxx>, <linux-alpha@xxxxxxxxxxxxxxx>, <linux-m68k@xxxxxxxxxxxxxxx>, Liviu Dudau <liviu@xxxxxxxxxxx>, "Arnd Bergmann" <arnd@xxxxxxxx>, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- In-reply-to: <20150303025020.GF11978@google.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1424938344-4017-1-git-send-email-wangyijing@huawei.com> <1424938344-4017-13-git-send-email-wangyijing@huawei.com> <20150303025020.GF11978@google.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1
>> + if (host->ops && host->ops->phb_prepare) {
>> + error = host->ops->phb_prepare(host);
>> + if(error) {
>
> Whitespace error.
Will fix.
>
>> --- a/include/linux/pci.h
>> +++ b/include/linux/pci.h
>> @@ -400,6 +400,13 @@ static inline int pci_channel_offline(struct pci_dev *pdev)
>> return (pdev->error_state != pci_channel_io_normal);
>> }
>>
>> +struct pci_host_bridge;
>> +struct pci_host_bridge_ops {
>> + void (*phb_set_root_bus_speed)(struct pci_host_bridge *host);
>> + int (*phb_prepare)(struct pci_host_bridge *host);
>> + void (*phb_of_scan_bus)(struct pci_host_bridge *);
>
> These function pointers don't need a "phb_" prefix.
Will update them.
>
> .
>
--
Thanks!
Yijing
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]