public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4] sym53c8xx_2 sniff inquiry fix
@ 2004-11-01 21:26 Tony Battersby
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Battersby @ 2004-11-01 21:26 UTC (permalink / raw)
  To: 'Marcelo Tosatti'; +Cc: linux-scsi

This is a resend of http://marc.theaimsgroup.com/?l=linux-scsi&m=108117878914404&w=2

The sym53c8xx_2 driver in lk 2.4.x is unmaintained.  This is a backported fix
from lk 2.6.x for a problem with sniffing inquiry data incorrectly resulting
in Ultra 160 negotiation being disabled for some devices.  Please apply.

--- linux-2.4.26-vanilla/drivers/scsi/sym53c8xx_2/sym_misc.c	Fri Nov  9 18:22:54 2001
+++ linux-2.4.26-asp/drivers/scsi/sym53c8xx_2/sym_misc.c	Wed Apr 28 14:02:41 2004
@@ -315,7 +315,7 @@
 	 */
 	inq_byte56 = tp->inq_byte56;
 	if (inq_version >= 4 && inq_len > 56)
-		tp->inq_byte56 = inq_data[56];
+		inq_byte56 = inq_data[56];
 #if 0
 printf("XXXXXX [%d] inq_version=%x inq_byte7=%x inq_byte56=%x XXXXX\n",
 	inq_len, inq_version, inq_byte7, inq_byte56);


Anthony J. Battersby
Cybernetics


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 2.4] sym53c8xx_2 sniff inquiry fix
@ 2004-04-05 15:24 Tony Battersby
  2004-04-05 15:35 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Battersby @ 2004-04-05 15:24 UTC (permalink / raw)
  To: willy; +Cc: linux-scsi

The following patch fixes a problem where sym53c8xx_2 always sniffs a
value of 0x00 for inquiry byte 56, which breaks 160 MB/s negotiations.

I am working with lk 2.4.x; I don't know if this needs to be applied to
lk 2.6.x also.

--- drivers/scsi/sym53c8xx_2/sym_misc.c.orig	Mon Apr  5 11:03:28 2004
+++ drivers/scsi/sym53c8xx_2/sym_misc.c	Mon Apr  5 11:03:38 2004
@@ -315,7 +315,7 @@
 	 */
 	inq_byte56 = tp->inq_byte56;
 	if (inq_version >= 4 && inq_len > 56)
-		tp->inq_byte56 = inq_data[56];
+		inq_byte56 = inq_data[56];
 #if 0
 printf("XXXXXX [%d] inq_version=%x inq_byte7=%x inq_byte56=%x XXXXX\n",
 	inq_len, inq_version, inq_byte7, inq_byte56);



Anthony J. Battersby
Cybernetics


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

end of thread, other threads:[~2004-11-01 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-01 21:26 [PATCH 2.4] sym53c8xx_2 sniff inquiry fix Tony Battersby
  -- strict thread matches above, loose matches on Subject: below --
2004-04-05 15:24 Tony Battersby
2004-04-05 15:35 ` Matthew Wilcox

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