Skip to contentSkip to conversation

make sym53c8xx_2 not reject autosense IWR

PATCH New Tony Battersby 1 participant 1 message Jun 11, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make sym53c8xx_2 not reject autosense IWR

This patch against recent 2.4.x makes sym53c8xx_2 silently ignore the Ignore Wide Residue message on autosense commands rather than rejecting it. This makes the SCSI communications cleaner for targets that return an odd number of sense bytes.

Anthony J. Battersby
Cybernetics

scsi/sym53c8xx_2/sym_hipd.c renamed from scsi/sym53c8xx_2/sym_hipd.c.orig +4 -1
@@ -4641,7 +4641,10 @@
 		case M_IGN_RESIDUE:
 			if (DEBUG_FLAGS & DEBUG_POINTER)
 				sym_print_msg(cp,"ign wide residue", np->msgin);
-			sym_modify_dp(np, tp, cp, -1);
+			if (cp->host_flags & HF_SENSE)
+				OUTL_DSP (SCRIPTA_BA (np, clrack));
+			else
+				sym_modify_dp(np, tp, cp, -1);
 			return;
 		case M_REJECT:
 			if (INB (HS_PRT) == HS_NEGOTIATE)