On Sun, Mar 06, 2005 at 05:18:17PM +0000, Matthew Wilcox wrote: > Introduce a generic SPI function to print the negotiated transfer > agreement. It's based on the implementation in sym53c8xx_2/sym_misc.c. > I have changes in my tree to make 53c700, ncr53c8xx and sym2 use it. > Other drivers need to be converted to use the SPI transport layer first.
I'd just like to have a quick discussion about this actually. I'd like to reduce the SCSI verbosity at boot. Currently, the sym2 driver does something like this: scsi1 : sym-2.2.0 Vendor: SEAGATE Model: ST39204LC Rev: HP04 Type: Direct-Access ANSI SCSI revision: 03 target1:0:6: tagged command queuing enabled, command queue depth 16. target1:0:6: Beginning Domain Validation target1:0:6: asynchronous. target1:0:6: wide asynchronous. target1:0:6: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 16) target1:0:6: Ending Domain Validation I don't think it's terribly useful to print out all the intermediate steps, so I'd like to introduce a flag that would inhibit printing the transfer agreement and then print it once at the end, leaving to messages more like: scsi1 : sym-2.2.0 Vendor: SEAGATE Model: ST39204LC Rev: HP04 Type: Direct-Access ANSI SCSI revision: 03 target1:0:6: tagged command queuing enabled, command queue depth 16. target1:0:6: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 16) My impression is that James originally added the Beginning and Ending messages to indicate that messages in between were produced as a result of doing DV, and if no messages are produced, we don't need to print them any more. That saves us 4 lines per target. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html