From: Kurt Garloff <garloff@suse.de>
To: Linux SCSI list <linux-scsi@vger.kernel.org>
Cc: Willem Riede <osst@riede.org>,
James Bottomley <James.Bottomley@steeleye.com>
Subject: [PATCH] unique_id for ide-scsi
Date: Mon, 9 Feb 2004 16:54:40 +0100 [thread overview]
Message-ID: <20040209155440.GQ3944@tpkurt.garloff.de> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 437 bytes --]
Hi,
most scsi host adapters do fill in their ioport into thos host's
unique_id field.
ide-scsi does not. The attached patch changes it.
Caveats: It puts the first PATA port there, the SATA port are not
considered. Are there SATA chips that don't have PATA ports?
Regards,
--
Kurt Garloff <garloff@suse.de> Cologne, DE
SUSE LINUX AG, Nuernberg, DE SUSE Labs (Head)
[-- Attachment #1.2: ide-scsi-unique-id.diff --]
[-- Type: text/plain, Size: 349 bytes --]
--- drivers/scsi/ide-scsi.c.orig 2004-01-09 07:59:45.000000000 +0100
+++ drivers/scsi/ide-scsi.c 2004-02-09 16:26:24.033475704 +0100
@@ -967,6 +967,7 @@
host->max_id = 1;
host->max_lun = 1;
+ host->unique_id = drive->hwif->hw.io_ports[0];
drive->driver_data = host;
idescsi = scsihost_to_idescsi(host);
idescsi->drive = drive;
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-02-09 15:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 15:54 Kurt Garloff [this message]
2004-02-09 16:06 ` [PATCH] unique_id for ide-scsi Christoph Hellwig
2004-02-09 16:19 ` Kurt Garloff
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=20040209155440.GQ3944@tpkurt.garloff.de \
--to=garloff@suse.de \
--cc=James.Bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=osst@riede.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