Skip to contentSkip to conversation

Fix uninitialised width and speed in sym2

PATCH New Matthew Wilcox 1 participant 1 message Feb 28, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix uninitialised width and speed in sym2

sym2 boards without NVRAM currently negotiate narrow due to this missed initialisation

Index: ./drivers/scsi/sym53c8xx_2/sym_hipd.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.c,v retrieving revision 1.82.2.1
retrieving revision 1.82

drivers/scsi/sym53c8xx_2/sym_hipd.c +2 -0
diff -u -p -r1.82.2.1 -r1.82
@@ -919,6 +922,8 @@ static int sym_prepare_setting(struct Sc
 
 		tp->usrflags |= (SYM_DISC_ENABLED | SYM_TAGS_ENABLED);
 		tp->usrtags = SYM_SETUP_MAX_TAG;
+		tp->usr_width = np->maxwide;
+		tp->usr_period = 9;
 
 		sym_nvram_setup_target(tp, i, nvram);