From: Jeremy Higdon <jeremy@sgi.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] add spi attributes to qla1280
Date: Wed, 11 Aug 2004 14:56:51 -0700 [thread overview]
Message-ID: <20040811215651.GA30821@sgi.com> (raw)
In-Reply-To: <20040811081118.A26256@infradead.org>
On Wed, Aug 11, 2004 at 08:11:18AM +0100, Christoph Hellwig wrote:
> > + if (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP12160 ||
> > + ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP10160)
> > + is1x160 = 1;
> > + else
> > + is1x160 = 0;
>
> The driver in James' tree has most of my 1040-support patches merged,
> sp please use the apporpinquate IS_ISP* macros like the rest of the drivers
> does, and please handle the 1040 aswell in that code.
The above is consistent with the rest of the driver in 2.6.8-rc2.
So are you asking that I submit a patch to the driver in James's
tree instead of to 2.6.8-rc2?
To avoid possibility of error, can you give me the URL for James's
tree? Is it a bk tree or a kernel.org tree?
> > +static struct scsi_transport_template *qla1280_transport_template = NULL;
>
> No need to initialize to NULL here.
I thought about that. What I did was take a patch that Martin Hicks
submitted on March 10th and then make changes based on what I saw that
James had done for the 53c700 driver, which has:
drivers/scsi/53c700.c:STATIC struct scsi_transport_template *NCR_700_transport_template = NULL;
I will remove the initializer if I don't need it.
> > static int __devinit
> > qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
> > {
> > @@ -4758,6 +4778,7 @@
> > host->max_id = MAX_TARGETS;
> > host->max_sectors = 1024;
> > host->unique_id = host->host_no;
> > + host->transportt = qla1280_transport_template;
> >
> > #if LINUX_VERSION_CODE < 0x020545
> > host->select_queue_depths = qla1280_select_queue_depth;
> > @@ -4890,6 +4911,12 @@
> > .remove = __devexit_p(qla1280_remove_one),
> > };
> >
> > +static struct spi_function_template qla1280_transport_functions = {
> > + .show_period = 1,
> > + .show_offset = 1,
> > +};
>
> Any chance you could declare this just below the host template? that keeps
> the code better organized.
Sure.
jeremy
next prev parent reply other threads:[~2004-08-11 21:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 23:05 [PATCH] add spi attributes to qla1280 Jeremy Higdon
2004-08-11 6:31 ` Jes Sorensen
2004-08-11 7:11 ` Christoph Hellwig
2004-08-11 21:56 ` Jeremy Higdon [this message]
2004-08-11 22:05 ` Christoph Hellwig
2004-08-11 22:16 ` Jeremy Higdon
2004-08-11 22:22 ` Christoph Hellwig
2004-08-12 5:29 ` Jeremy Higdon
2004-08-12 9:08 ` Christoph Hellwig
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=20040811215651.GA30821@sgi.com \
--to=jeremy@sgi.com \
--cc=hch@infradead.org \
--cc=linux-scsi@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