diff options
author | Shaun Tancheff <shaun@tancheff.com> | 2016-09-09 11:44:19 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-09-09 15:21:21 -0400 |
commit | 0ce1b18c42a5b1613ad84d3bf93ee4f5bb3f8b33 (patch) | |
tree | 667484ca2aa5a79bbac59b10ae996638cd7f11ca /drivers/ata | |
parent | 0b9e2988ab2261fd6d4a0039edf81ed1e3662be8 (diff) | |
download | blackbird-obmc-linux-0ce1b18c42a5b1613ad84d3bf93ee4f5bb3f8b33.tar.gz blackbird-obmc-linux-0ce1b18c42a5b1613ad84d3bf93ee4f5bb3f8b33.zip |
libata: Some drives failing on SCT Write Same
Restrict support SCT Write Same to devices which also support ZAC where
support is required.
Reported-by: Mike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: Shaun Tancheff <shaun.tancheff@seagate.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 2f5487f02de1..9cceb4a875a5 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3562,9 +3562,9 @@ static unsigned int ata_scsiop_maint_in(struct ata_scsi_args *args, u8 *rbuf) supported = 3; break; case WRITE_SAME_16: - if (ata_id_sct_write_same(dev->id)) - supported = 3; - break; + if (!ata_id_sct_write_same(dev->id)) + break; + /* fallthrough: if SCT ... only enable for ZBC */ case ZBC_IN: case ZBC_OUT: if (ata_id_zoned_cap(dev->id) || |