Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
		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) ||