Commit e52dcc4899cf1b7601379c31542bd91cd2997a64
Committed by
Jeff Garzik
1 parent
436d34b362
Exists in
master
and in
7 other branches
libata: ATA_12/16 doesn't fall into ATAPI_MISC
SAT passthrus don't really fit into ATAPI_MISC class. SAT passthru commands always transfer multiple of 512 bytes and variable length response is not allowed. This patch creates a separate category - ATAPI_PASS_THRU - for these. This fixes HSM violation on "hdparm -I". Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Showing 2 changed files with 7 additions and 1 deletions Side-by-side Diff
drivers/ata/libata-core.c
include/linux/libata.h
... | ... | @@ -350,7 +350,8 @@ |
350 | 350 | ATAPI_READ = 0, /* READs */ |
351 | 351 | ATAPI_WRITE = 1, /* WRITEs */ |
352 | 352 | ATAPI_READ_CD = 2, /* READ CD [MSF] */ |
353 | - ATAPI_MISC = 3, /* the rest */ | |
353 | + ATAPI_PASS_THRU = 3, /* SAT pass-thru */ | |
354 | + ATAPI_MISC = 4, /* the rest */ | |
354 | 355 | }; |
355 | 356 | |
356 | 357 | enum ata_xfer_mask { |