All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Ed Lin <ed.lin@promise.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	"James.Bottomley" <James.Bottomley@SteelEye.com>,
	promise_linux <promise_linux@promise.com>
Subject: Re: [PATCH 5/8] stex: update device id info
Date: Sat, 02 Dec 2006 00:09:54 -0500	[thread overview]
Message-ID: <45710AA2.3000101@garzik.org> (raw)
In-Reply-To: <NONAMEBzg7KazMfhgmu0000149b@nonameb.ptu.promise.com>

Ed Lin wrote:
> Update pci device id and Kconfig help information.
> 
> Signed-off-by: Ed Lin <ed.lin@promise.com>

NAK.  At the very least, this patch description needs enhancing, but 
more likely we need another PCI ID entry or two.


> ---
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 1301d52..fb55373 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -968,8 +968,16 @@ config SCSI_STEX
>  	tristate "Promise SuperTrak EX Series support"
>  	depends on PCI && SCSI
>  	---help---
> -	  This driver supports Promise SuperTrak EX8350/8300/16350/16300
> -	  Storage controllers.
> +	  This driver supports Promise SuperTrak EX series storage controllers.
> +	  These include SuperTrak EX8350, EX8300, EX16350, EX16300, EX12350,
> +	  EX4350, EX24350; SuperTrak EX4650, EX4650o, EX8650EL, EX8650, EX8654;
> +	  and VSC7250 series.

I would strongly suggest eliminating the "These include ...." sentence. 
  Otherwise, you will be forced by marketing department to patch the 
driver every time a new board appears.


> -	{ 0x1725, 0x7250, PCI_ANY_ID, PCI_ANY_ID, 0, 0, st_vsc },
[...]
> +	/* st_vsc */
> +	{ 0x105a, 0x7250, 0x105a, 0x1000, 0, 0, st_vsc0 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2500, 0, 0, st_vsc0 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2510, 0, 0, st_vsc0 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2520, 0, 0, st_vsc0 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2530, 0, 0, st_vsc0 },
> +	{ 0x105a, 0x7250, 0x105a, 0x1001, 0, 0, st_vsc1 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2501, 0, 0, st_vsc1 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2511, 0, 0, st_vsc1 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2521, 0, 0, st_vsc1 },
> +	{ 0x105a, 0x7250, 0x105a, 0x2531, 0, 0, st_vsc1 },

Normal this sort of change -- not providing a generic PCI_ANY_ID entries 
for the sub-device and sub-vendor IDs -- is a bad idea.

This means that the VSC-related section of the pci_device_id table will 
be very maintenance intensive over time.  It also means that new or 
unknown compatible devices will not automatically be picked up by the 
driver.

It may be preferable even to do

	 0x105a, 0x7250, PCI_ANY_ID, PCI_ANY_ID, 0, 0, st_vsc0

and then in the PCI init routine, add code that looks something like

	if ((ent->driver_data == st_vsc0) && (test for newer rev1))
		driver_data = st_vsc1;
	else
		driver_data = st_vsc0;

Regards,

	Jeff



  reply	other threads:[~2006-12-02  5:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-02  4:44 [PATCH 5/8] stex: update device id info Ed Lin
2006-12-02  5:09 ` Jeff Garzik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-04 18:10 Ed Lin

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=45710AA2.3000101@garzik.org \
    --to=jeff@garzik.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=ed.lin@promise.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=promise_linux@promise.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.