Message ID | 20121031095148.75dbb6e8.izumi.taku@jp.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Tue, Oct 30, 2012 at 5:51 PM, Taku Izumi <izumi.taku@jp.fujitsu.com> wrote: > > PCI/portdrv: Fix regression introduced by commit 2dcfaf85 > > After commit 2dcfaf85, hotplug slots for port devices > w/o slot implementation come to be created. > This patch fixes this problem. > > Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> > --- > drivers/pci/pcie/portdrv_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: pci/drivers/pci/pcie/portdrv_core.c > =================================================================== > --- pci.orig/drivers/pci/pcie/portdrv_core.c > +++ pci/drivers/pci/pcie/portdrv_core.c > @@ -272,7 +272,8 @@ static int get_port_device_capability(st > } > > /* Hot-Plug Capable */ > - if (cap_mask & PCIE_PORT_SERVICE_HP) { > + if ((cap_mask & PCIE_PORT_SERVICE_HP) && > + dev->pcie_flags_reg & PCI_EXP_FLAGS_SLOT) { > pcie_capability_read_dword(dev, PCI_EXP_SLTCAP, ®32); > if (reg32 & PCI_EXP_SLTCAP_HPC) { > services |= PCIE_PORT_SERVICE_HP; > Acked-by: Yinghai Lu <yinghai@kernel.org> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Taku, It's a mistake introduced by that patch, thanks for fix it. Reviewed-by: <jiang.liu@huawei.com> On 2012-10-31 8:51, Taku Izumi wrote: > > PCI/portdrv: Fix regression introduced by commit 2dcfaf85 > > After commit 2dcfaf85, hotplug slots for port devices > w/o slot implementation come to be created. > This patch fixes this problem. > > Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> > --- > drivers/pci/pcie/portdrv_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: pci/drivers/pci/pcie/portdrv_core.c > =================================================================== > --- pci.orig/drivers/pci/pcie/portdrv_core.c > +++ pci/drivers/pci/pcie/portdrv_core.c > @@ -272,7 +272,8 @@ static int get_port_device_capability(st > } > > /* Hot-Plug Capable */ > - if (cap_mask & PCIE_PORT_SERVICE_HP) { > + if ((cap_mask & PCIE_PORT_SERVICE_HP) && > + dev->pcie_flags_reg & PCI_EXP_FLAGS_SLOT) { > pcie_capability_read_dword(dev, PCI_EXP_SLTCAP, ®32); > if (reg32 & PCI_EXP_SLTCAP_HPC) { > services |= PCIE_PORT_SERVICE_HP; > > > -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Nov 1, 2012 at 6:53 AM, Jiang Liu <jiang.liu@huawei.com> wrote: > Hi Taku, > It's a mistake introduced by that patch, thanks for fix it. > Reviewed-by: <jiang.liu@huawei.com> > > On 2012-10-31 8:51, Taku Izumi wrote: >> >> PCI/portdrv: Fix regression introduced by commit 2dcfaf85 >> >> After commit 2dcfaf85, hotplug slots for port devices >> w/o slot implementation come to be created. >> This patch fixes this problem. I applied this to my for-linus branch as v3.7 material. Thanks! >> Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> >> --- >> drivers/pci/pcie/portdrv_core.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> Index: pci/drivers/pci/pcie/portdrv_core.c >> =================================================================== >> --- pci.orig/drivers/pci/pcie/portdrv_core.c >> +++ pci/drivers/pci/pcie/portdrv_core.c >> @@ -272,7 +272,8 @@ static int get_port_device_capability(st >> } >> >> /* Hot-Plug Capable */ >> - if (cap_mask & PCIE_PORT_SERVICE_HP) { >> + if ((cap_mask & PCIE_PORT_SERVICE_HP) && >> + dev->pcie_flags_reg & PCI_EXP_FLAGS_SLOT) { >> pcie_capability_read_dword(dev, PCI_EXP_SLTCAP, ®32); >> if (reg32 & PCI_EXP_SLTCAP_HPC) { >> services |= PCIE_PORT_SERVICE_HP; >> >> >> > > -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Index: pci/drivers/pci/pcie/portdrv_core.c =================================================================== --- pci.orig/drivers/pci/pcie/portdrv_core.c +++ pci/drivers/pci/pcie/portdrv_core.c @@ -272,7 +272,8 @@ static int get_port_device_capability(st } /* Hot-Plug Capable */ - if (cap_mask & PCIE_PORT_SERVICE_HP) { + if ((cap_mask & PCIE_PORT_SERVICE_HP) && + dev->pcie_flags_reg & PCI_EXP_FLAGS_SLOT) { pcie_capability_read_dword(dev, PCI_EXP_SLTCAP, ®32); if (reg32 & PCI_EXP_SLTCAP_HPC) { services |= PCIE_PORT_SERVICE_HP;
PCI/portdrv: Fix regression introduced by commit 2dcfaf85 After commit 2dcfaf85, hotplug slots for port devices w/o slot implementation come to be created. This patch fixes this problem. Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> --- drivers/pci/pcie/portdrv_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html