lkml.org 
[lkml]   [2001]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] enhancement in drivers/scsi/ncr53c8xx.c
Date
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 ncr53c8xx driver. This patch simply adds appropriate printk to do
that.

--- ncr53c8xx.c.bak Tue Feb 27 11:09:22 2001
+++ ncr53c8xx.c Tue Feb 27 11:09:43 2001
@@ -3539,6 +3539,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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.026 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site