Re: [RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Jiang Liu
On 2012-7-11 2:35, Bjorn Helgaas wrote: >> @@ -2042,7 +1994,6 @@ void pci_free_cap_save_buffers(struct pci_dev *dev) >> */ >> void pci_enable_ari(struct pci_dev *dev) >> { >> - int pos; >> u32 cap; >> u16 ctrl; >> struct pci_dev *bridge; >> @@ -2050,8 +2001,7 @@

Re: [RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Use PCIe cap access functions to simplify PCI core implementation. > > Signed-off-by: Jiang Liu > --- > drivers/pci/pci.c| 237 > ++ > drivers/pci/probe.c | 19 ++--

[RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Jiang Liu
From: Jiang Liu Use PCIe cap access functions to simplify PCI core implementation. Signed-off-by: Jiang Liu --- drivers/pci/pci.c| 237 ++ drivers/pci/probe.c | 19 ++-- drivers/pci/quirks.c |8 +- 3 files changed, 73 insertions(+),

[RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Jiang Liu
From: Jiang Liu jiang@huawei.com Use PCIe cap access functions to simplify PCI core implementation. Signed-off-by: Jiang Liu liu...@gmail.com --- drivers/pci/pci.c| 237 ++ drivers/pci/probe.c | 19 ++-- drivers/pci/quirks.c |8 +-

Re: [RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu liu...@gmail.com wrote: From: Jiang Liu jiang@huawei.com Use PCIe cap access functions to simplify PCI core implementation. Signed-off-by: Jiang Liu liu...@gmail.com --- drivers/pci/pci.c| 237

Re: [RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Jiang Liu
On 2012-7-11 2:35, Bjorn Helgaas wrote: @@ -2042,7 +1994,6 @@ void pci_free_cap_save_buffers(struct pci_dev *dev) */ void pci_enable_ari(struct pci_dev *dev) { - int pos; u32 cap; u16 ctrl; struct pci_dev *bridge; @@ -2050,8 +2001,7 @@ void