Skip to contentSkip to conversation

enhancement in drivers/scsi/sym53c8xx.c

PATCH New Khalid Aziz 1 participant 1 message Feb 27, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 enhancement in drivers/scsi/sym53c8xx.c

When working with LVD SCSI bus, I have found it to be rather useful to know if the bus is operating in LVD or SE mode since the bus auto switches. All the info needed to print the bus mode is already there in sym53c8xx driver. This patch simply adds appropriate printk to do that.

sym53c8xx.c renamed from sym53c8xx.c.bak +17 -0
@@ -5473,6 +5473,23 @@
 	if (np->scsi_mode == SMODE_HVD)
 		np->rv_stest2 |= 0x20;
 
+	switch (np->scsi_mode) {
+		case SMODE_SE:
+			printk(KERN_INFO "%s: Bus mode: Single-Ended\n",
+				ncr_name(np));
+			break;
+
+		case SMODE_LVD:
+			printk(KERN_INFO "%s: Bus mode: LVD\n",
+				ncr_name(np));
+			break;
+
+		case SMODE_HVD:
+			printk(KERN_INFO "%s: Bus mode: High Voltage Differential\n",
+				ncr_name(np));
+			break;
+	}
+
 	/*
 	**	Set LED support from SCRIPTS.
 	**	Ignore this feature for boards known to use a 

====================================================================
Khalid Aziz Linux Development Laboratory
(970)898-9214 Hewlett-Packard
[email protected] Fort Collins, CO