ata erroneously treats inq_qual as DPQ
in struct scsi_inquiry, the SCSI "Peripheral Device Qualifier", embodied in the DPQ_* macros, is actually part of the compound inq_dtype field. inq_qual is the SCSI-1 "Device Type Modifier"
ata(7D) contains code which does this:
2693 inqp->inq_dtype = DTYPE_DIRECT; 2694 inqp->inq_qual = DPQ_POSSIBLE;
Likely intending to actually
DTYPE_DIRECT|DPQ_POSSIBLE, while leaving inq_qual as 0.
I came across his while fixing #1654, by inspection, and have not tested this in the least. People fixing this should refer to SPC-3 6.4.2