Mark Lord wrote: > Tejun Heo wrote: >> Mark Lord wrote: >> .. >>> So, to achieve ATA passthru capability for libata ATAPI, >>> we have to instead use the ATA_16 opcode: a 16-byte command. >>> >>> SCSI normally disallows issuing 16-byte commands to 12-byte devices, >>> so special support has to be added for this. > >> I might have missed the discussion but can't we just set >> host->max_cmd_len to 16 unconditionally? > > Sure thing, if you and Jeff are happy with that, then lets do it. > > I just kind of assumed that the complexity in ata_set_port_max_cmd_len() > was there for some kind of reason. > > For example, I think all existing ATAPI drives only speak 12-byte packet > protocols, and so if we tell SCSI we're good for 16-byte, then won't the > SCSI layer suddenly start sending us READ_16 and the like? SCSI always uses the smallest command it can use, so we're safe. Most other commands are issued directly from the userland and it's their responsibility not to feed disallowed commands to a device (or we need more advanced filter). Anyways, this has never been guaranteed because the limit is host wide. So, I'm for setting it to 16. Jeff, what do you think? -- tejun - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html