From: Khalid Aziz <khalid@lyra.fc.hp.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] enhancement in drivers/scsi/ncr53c8xx.c
Date: Tue, 27 Feb 2001 11:21:35 -0500 (EST) [thread overview]
Message-ID: <200102271621.LAA19986@lyra.fc.hp.com> (raw)
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
reply other threads:[~2001-02-27 18:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200102271621.LAA19986@lyra.fc.hp.com \
--to=khalid@lyra.fc.hp.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).