Jeff Garzik wrote: > Brian King wrote: >> Going along with that argument, there's really no good reason for >> libata to be playing games with scsi_host->max_cmd_len based on >> the attached devices. > > If both host controller and device support 16-byte CDB, it should not be > limited to 12 bytes. Agreed. > libata is not "playing games", just exporting what the hardware supports > as best the API allows. It needs to support 16-byte CDBs for the same > reason any SCSI LLDD supports 16-byte CDBs. > > Remember ATAPI<->SCSI bridges exist, thus any SCSI disk can appear > attached to ATAPI. The libata code in question is the code that changes scsi_host->max_cmd_len based on what the attached devices support. I propose the following patch. This patch is untested. -- Brian King eServer Storage I/O IBM Linux Technology Center