Commit 0ce1b18c authored by Shaun Tancheff's avatar Shaun Tancheff Committed by Tejun Heo

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: default avatarMike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: default avatarShaun Tancheff <shaun.tancheff@seagate.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 0b9e2988
...@@ -3562,9 +3562,9 @@ static unsigned int ata_scsiop_maint_in(struct ata_scsi_args *args, u8 *rbuf) ...@@ -3562,9 +3562,9 @@ static unsigned int ata_scsiop_maint_in(struct ata_scsi_args *args, u8 *rbuf)
supported = 3; supported = 3;
break; break;
case WRITE_SAME_16: case WRITE_SAME_16:
if (ata_id_sct_write_same(dev->id)) if (!ata_id_sct_write_same(dev->id))
supported = 3;
break; break;
/* fallthrough: if SCT ... only enable for ZBC */
case ZBC_IN: case ZBC_IN:
case ZBC_OUT: case ZBC_OUT:
if (ata_id_zoned_cap(dev->id) || if (ata_id_zoned_cap(dev->id) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment