mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Alex Chiang <achiang@hp.com>
Cc: linux-pci <linux-pci@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PCI: connect struct pci_dev to struct pci_slot
Date: Tue, 23 Sep 2008 11:14:13 -0700	[thread overview]
Message-ID: <200809231114.13905.jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <20080902154051.GA23638@ldl.fc.hp.com>

On Tuesday, September 2, 2008 8:40 am Alex Chiang wrote:
> The introduction of struct pci_slot (f46753c5e354b857b20ab8e0fe7b25)
> added a struct pci_slot pointer to struct pci_dev, but we forgot to
> associate the two.
>
> Connect the two structs together; the interesting portions of the object
> lifetimes are:
>
> 	- when a new pci_slot is created, connect it to the appropriate
> 	  pci_dev's. A single pci_slot may be associated with multiple
> 	  pci_dev's, e.g. any multi-function PCI device.
>
> 	- when a pci_slot is released, look for all the pci_dev's it was
> 	  associated with, and set their pci_slot pointers to NULL
>
> 	- when a pci_dev is created, look for slots to associate with.
>
> Note -- when a pci_dev is released, we don't need to do any bookkeeping,
> since pci_slot's do not have pointers to pci_dev's.
>
> Signed-off-by: Alex Chiang <achiang@hp.com>

Applied to linux-next.  Thanks.

Jesse

      reply	other threads:[~2008-09-23 18:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 15:40 Alex Chiang
2008-09-23 18:14 ` Jesse Barnes [this message]

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=200809231114.13905.jbarnes@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.org \
    --cc=achiang@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /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

Powered by JetHome