mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Herbert Rosmanith <kernel@wildsau.enemy.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: finding pci_dev from scsi_device
Date: Mon, 26 Jun 2006 16:41:40 +0200	[thread overview]
Message-ID: <1151332900.3185.49.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <200606261424.k5QEOolI013449@wildsau.enemy.org>

On Mon, 2006-06-26 at 16:24 +0200, Herbert Rosmanith wrote:
> > 
> > > > can you share with us what you want to do with this?
> > > 
> > > I need the pci_dev to reconfigure ahci-controllers so that they look like
> > > having been initialised by BIOS at reboot time.
> > 
> > isn't it better to do this in the ahci driver itself instead?
> 
> guess what I'm doing.
> 
> > it for sure will be orders of magnitude easier....
> 
> yes?

static int ahci_host_init(struct ata_probe_ent *probe_ent)
{
        struct ahci_host_priv *hpriv = probe_ent->private_data;
        struct pci_dev *pdev = to_pci_dev(probe_ent->dev);

as you can see, you can easily go from an ata_probe_ent to a pci
device... 

also.. you could just put your code into the remove hook... :)


  reply	other threads:[~2006-06-26 14:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 13:55 Herbert Rosmanith
2006-06-26 14:13 ` Arjan van de Ven
2006-06-26 14:15   ` Herbert Rosmanith
2006-06-26 14:29     ` Arjan van de Ven
2006-06-26 14:24       ` Herbert Rosmanith
2006-06-26 14:41         ` Arjan van de Ven [this message]
2006-06-26 14:47           ` Herbert Rosmanith
2006-06-26 14:54           ` Herbert Rosmanith
2006-06-26 14:37       ` Herbert Rosmanith
2006-06-26 14:42         ` Herbert Rosmanith

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=1151332900.3185.49.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=kernel@wildsau.enemy.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®