linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] enhancement in drivers/scsi/sym53c8xx.c
@ 2001-02-27 16:20 Khalid Aziz
  0 siblings, 0 replies; only message in thread
From: Khalid Aziz @ 2001-02-27 16:20 UTC (permalink / raw)
  To: linux-kernel

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.bak	Tue Feb 27 11:05:43 2001
+++ sym53c8xx.c	Tue Feb 27 11:09:13 2001
@@ -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
khalid@fc.hp.com                                    Fort Collins, CO

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-27 18:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-27 16:20 [PATCH] enhancement in drivers/scsi/sym53c8xx.c Khalid Aziz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).