mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Chiang <achiang@hp.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Matthew Wilcox <matthew@wil.cx>,
	Andrew Morton <akpm@linux-foundation.org>,
	kristen.c.accardi@intel.com, greg@kroah.com, lenb@kernel.org,
	pbadari@us.ibm.com, linux-pci@vger.kernel.org,
	pcihpd-discuss@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects
Date: Tue, 10 Jun 2008 15:19:47 -0600	[thread overview]
Message-ID: <20080610211947.GI25295@ldl.fc.hp.com> (raw)
In-Reply-To: <200806101224.19455.jbarnes@virtuousgeek.org>

* Jesse Barnes <jbarnes@virtuousgeek.org>:
> On Monday, June 09, 2008 8:12 pm Kenji Kaneshige wrote:
> > >  drivers/pci/hotplug/pci_hotplug_core.c |   16 ++++++++++++++++
> > >  1 file changed, 16 insertions(+)
> > >
> > > Index: 20080610/drivers/pci/hotplug/pci_hotplug_core.c
> > > ===================================================================
> > > --- 20080610.orig/drivers/pci/hotplug/pci_hotplug_core.c
> > > +++ 20080610/drivers/pci/hotplug/pci_hotplug_core.c
> > > @@ -555,6 +555,7 @@ int pci_hp_register(struct hotplug_slot
> > >  {
> > >  	int result;
> > >  	struct pci_slot *pci_slot;
> > > +	struct hotplug_slot *tmp;
> > >
> > >  	if (slot == NULL)
> > >  		return -ENODEV;
> > > @@ -567,6 +568,21 @@ int pci_hp_register(struct hotplug_slot
> > >  	}
> > >
> > >  	/*
> > > +	 * Prevent registering multiple hotplug slots with the same name.
> > > +	 */
> > > +	spin_lock(&pci_hotplug_slot_list_lock);
> > > +	list_for_each_entry(tmp, &pci_hotplug_slot_list, slot_list) {
> > > +		pci_slot = tmp->pci_slot;
> > > +		if (pci_slot->bus == bus && pci_slot->number == slot_nr)
> > > +			continue;
> > > +		if (!strcmp(tmp->name, slot->name)) {
> > > +			spin_unlock(&pci_hotplug_slot_list_lock);
> > > +			return -EEXIST;
> > > +		}
> > > +	}
> > > +	spin_unlock(&pci_hotplug_slot_list_lock);
> > > +
> > > +	/*
> > >  	 * No problems if we call this interface from both ACPI_PCI_SLOT
> > >  	 * driver and call it here again. If we've already created the
> > >  	 * pci_slot, the interface will simply bump the refcount.
> >
> > Please note that I made this patch against linux-next with your
> > latest three patches applied.
> 
> I looked this over and it seems like it's already handled in Alex's latest 
> patchset (v15); can you take a look and make sure, Kenji-san (see Alex's 
> latest mail to you too).

I am about to send out a v16, which is based off of Jesse's
pci-2.6 tree, linux-next branch.

It would be good to verify that latest patchset.

Thanks,

/ac

> I just need acks from you and Kristen before pushing this...
> 
> Thanks,
> Jesse
> 

  reply	other threads:[~2008-06-10 21:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 20:08 Alex Chiang
2008-06-04 20:14 ` [PATCH] fakephp: Construct one fakephp slot per PCI slot Alex Chiang
2008-06-04 20:16 ` [PATCH] kobject: Export kobject_rename for pci_hotplug_core Alex Chiang
2008-06-04 23:55   ` Greg KH
2008-06-05  5:48   ` Andrew Morton
2008-06-05  6:05     ` Kenji Kaneshige
2008-06-05  6:33       ` Andrew Morton
2008-06-05 15:11         ` Alex Chiang
2008-06-06  4:07           ` Benjamin Herrenschmidt
2008-06-06  4:51             ` Alex Chiang
2008-06-06 23:20               ` Benjamin Herrenschmidt
2008-06-04 20:16 ` [PATCH] PCI: Introduce pci_slot Alex Chiang
2008-06-04 20:18 ` [PATCH] ACPI: PCI slot detection driver Alex Chiang
2008-06-10 18:24   ` Len Brown
2008-06-10 21:17     ` Alex Chiang
2008-06-05  2:32 ` [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects Kenji Kaneshige
2008-06-05  3:07   ` Alex Chiang
2008-06-05  3:20     ` Kenji Kaneshige
2008-06-09  8:08 ` Kenji Kaneshige
2008-06-09 22:11   ` Alex Chiang
2008-06-10  3:04     ` Kenji Kaneshige
2008-06-10  3:12       ` Kenji Kaneshige
2008-06-10 19:24         ` Jesse Barnes
2008-06-10 21:19           ` Alex Chiang [this message]
2008-06-10 17:34       ` Alex Chiang
2008-06-11  1:48         ` Kenji Kaneshige
2008-06-11  2:53           ` Alex Chiang
2008-06-11  6:29             ` Kenji Kaneshige

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=20080610211947.GI25295@ldl.fc.hp.com \
    --to=achiang@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=greg@kroah.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=kaneshige.kenji@jp.fujitsu.com \
    --cc=kristen.c.accardi@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=pbadari@us.ibm.com \
    --cc=pcihpd-discuss@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®