public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] unique_id for ide-scsi
@ 2004-02-09 15:54 Kurt Garloff
  2004-02-09 16:06 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Kurt Garloff @ 2004-02-09 15:54 UTC (permalink / raw)
  To: Linux SCSI list; +Cc: Willem Riede, James Bottomley


[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-09 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-09 15:54 [PATCH] unique_id for ide-scsi Kurt Garloff
2004-02-09 16:06 ` Christoph Hellwig
2004-02-09 16:19   ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox