From: Bjorn Helgaas <bhelgaas@google.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Scott Murray <scott@spiteful.org>,
Yijing Wang <wangyijing@huawei.com>,
linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] PCI: cpcihp: missing curly braces in cpci_configure_slot()
Date: Fri, 06 Mar 2015 18:29:02 +0000 [thread overview]
Message-ID: <20150306182902.GF20077@google.com> (raw)
In-Reply-To: <20150225132322.GJ19745@mwanda>
On Wed, Feb 25, 2015 at 04:23:22PM +0300, Dan Carpenter wrote:
> I don't have this hardware but it looks like we weren't adding bridge
> devices as intended. Maybe the bridge is always the last device?
>
> Fixes: 05b125004815 ('PCI: cpcihp: Iterate over all devices in slot, not functions 0-7')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Applied with Yijing's ack to for-linus for v4.0, thanks! Also marked for
stable.
I'm afraid this is probably my fault, sorry.
> diff --git a/drivers/pci/hotplug/cpci_hotplug_pci.c b/drivers/pci/hotplug/cpci_hotplug_pci.c
> index 7d48eca..788db48 100644
> --- a/drivers/pci/hotplug/cpci_hotplug_pci.c
> +++ b/drivers/pci/hotplug/cpci_hotplug_pci.c
> @@ -286,11 +286,12 @@ int cpci_configure_slot(struct slot *slot)
> }
> parent = slot->dev->bus;
>
> - list_for_each_entry(dev, &parent->devices, bus_list)
> + list_for_each_entry(dev, &parent->devices, bus_list) {
> if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn))
> continue;
> if (pci_is_bridge(dev))
> pci_hp_add_bridge(dev);
> + }
>
>
> pci_assign_unassigned_bridge_resources(parent->self);
WARNING: multiple messages have this Message-ID (diff)
From: Bjorn Helgaas <bhelgaas@google.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Scott Murray <scott@spiteful.org>,
Yijing Wang <wangyijing@huawei.com>,
linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] PCI: cpcihp: missing curly braces in cpci_configure_slot()
Date: Fri, 6 Mar 2015 12:29:02 -0600 [thread overview]
Message-ID: <20150306182902.GF20077@google.com> (raw)
In-Reply-To: <20150225132322.GJ19745@mwanda>
On Wed, Feb 25, 2015 at 04:23:22PM +0300, Dan Carpenter wrote:
> I don't have this hardware but it looks like we weren't adding bridge
> devices as intended. Maybe the bridge is always the last device?
>
> Fixes: 05b125004815 ('PCI: cpcihp: Iterate over all devices in slot, not functions 0-7')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Applied with Yijing's ack to for-linus for v4.0, thanks! Also marked for
stable.
I'm afraid this is probably my fault, sorry.
> diff --git a/drivers/pci/hotplug/cpci_hotplug_pci.c b/drivers/pci/hotplug/cpci_hotplug_pci.c
> index 7d48eca..788db48 100644
> --- a/drivers/pci/hotplug/cpci_hotplug_pci.c
> +++ b/drivers/pci/hotplug/cpci_hotplug_pci.c
> @@ -286,11 +286,12 @@ int cpci_configure_slot(struct slot *slot)
> }
> parent = slot->dev->bus;
>
> - list_for_each_entry(dev, &parent->devices, bus_list)
> + list_for_each_entry(dev, &parent->devices, bus_list) {
> if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn))
> continue;
> if (pci_is_bridge(dev))
> pci_hp_add_bridge(dev);
> + }
>
>
> pci_assign_unassigned_bridge_resources(parent->self);
next prev parent reply other threads:[~2015-03-06 18:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 13:23 [patch] PCI: cpcihp: missing curly braces in cpci_configure_slot() Dan Carpenter
2015-02-25 13:23 ` Dan Carpenter
2015-02-26 1:01 ` Yijing Wang
2015-02-26 1:01 ` Yijing Wang
2015-03-06 18:29 ` Bjorn Helgaas [this message]
2015-03-06 18:29 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150306182902.GF20077@google.com \
--to=bhelgaas@google.com \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=scott@spiteful.org \
--cc=wangyijing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.