From: Patrick Mansfield <patmans@us.ibm.com>
To: "J.E.J. Bottomley" <James.Bottomley@steeleye.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
grundler@dsl2.external.hp.com, willy@debian.org
Subject: Re: [RFC][PATCH] move dma_mask into struct device
Date: Sat, 16 Nov 2002 12:33:51 -0800 [thread overview]
Message-ID: <20021116123351.A7537@eng2.beaverton.ibm.com> (raw)
In-Reply-To: <200211152034.gAFKYC404219@localhost.localdomain>; from James.Bottomley@steeleye.com on Fri, Nov 15, 2002 at 03:34:12PM -0500
On Fri, Nov 15, 2002 at 03:34:12PM -0500, J.E.J. Bottomley wrote:
> --- 1.36/drivers/scsi/hosts.h Thu Nov 14 13:07:27 2002
> +++ edited/drivers/scsi/hosts.h Fri Nov 15 14:43:59 2002
> @@ -468,10 +468,10 @@
> unsigned int max_host_blocked;
>
> /*
> - * For SCSI hosts which are PCI devices, set pci_dev so that
> - * we can do BIOS EDD 3.0 mappings
> + * This is a pointer to the generic device for this host (i.e. the
> + * device on the bus);
> */
> - struct pci_dev *pci_dev;
> + struct device *dev;
>
> /*
> * Support for driverfs filesystem
> @@ -521,11 +521,17 @@
> shost->host_lock = lock;
> }
>
> +static inline void scsi_set_device(struct Scsi_Host *shost,
> + struct device *dev)
> +{
> + shost->dev = dev;
> + shost->host_driverfs_dev.parent = dev;
> +}
> +
> static inline void scsi_set_pci_device(struct Scsi_Host *shost,
> struct pci_dev *pdev)
> {
> - shost->pci_dev = pdev;
> - shost->host_driverfs_dev.parent=&pdev->dev;
> + scsi_set_device(shost, &pdev->dev);
> }
Can shost->host_driverfs_dev.parent be used instead of adding and
using a duplicate shost->dev?
-- Patrick Mansfield
next prev parent reply other threads:[~2002-11-16 20:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-15 20:34 J.E.J. Bottomley
2002-11-16 0:19 ` Mike Anderson
2002-11-16 14:48 ` J.E.J. Bottomley
2002-11-16 20:33 ` Patrick Mansfield [this message]
2002-11-17 15:07 ` J.E.J. Bottomley
[not found] <arndb@de.ibm.com>
2002-11-16 17:23 ` Arnd Bergmann
2002-11-16 15:33 ` J.E.J. Bottomley
2002-11-16 18:26 ` Arnd Bergmann
2002-11-16 17:01 ` J.E.J. Bottomley
2002-11-16 19:56 ` Arnd Bergmann
2002-11-16 18:12 ` J.E.J. Bottomley
2002-11-16 20:46 ` Arnd Bergmann
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=20021116123351.A7537@eng2.beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=grundler@dsl2.external.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=willy@debian.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®