lkml.org 
[lkml]   [2006]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.6.18-rc4 1/5] ieee1394: sbp2: workaround for write protect bit of Initio firmware
Linus Torvalds wrote:
> I don't think there really is _ever_ any reason to use the 10-byte version
> if the 6-byte version is expected to work. Is there?

Yes, but not really important: 10-byte allows a 16-bit allocation
length (additional data section), where 6-byte only allows 8-bit.

However, the mode pages the kernel requests from the device are normally
<= 256 bytes.

In general, your intuition is correct. use_10_for_foo is largely meant
for the subclass of "SCSI" devices which often don't bother to implement
the 6-byte commands, forcing the software driver to emulate 6-byte.
use_10_for_foo allows the software driver to eliminate that in-kernel
emulation code.

Jeff


-
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: 2006-08-28 03:23    [W:0.078 / U:0.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site