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

Commit 0a93fe63 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

scsi: ufs: Enable quirk to ignore sending WRITE_SAME command



WRITE_SAME command is not supported by UFS. Enable a quirk for
the upper level drivers to not send WRITE SAME command.

Change-Id: If3108134ceefbcb9c8585c1b489b4124ffa6b1ad
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent b17f2201
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2445,6 +2445,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
	/* try read capactiy (10) first as rc_16 is optional in UFS spec. */
	sdev->try_rc_10_first = 1;

	/* WRITE_SAME command is not supported*/
	sdev->no_write_same = 1;

	ret = ufshcd_read_unit_desc_param(hba,
					  ufshcd_scsi_to_upiu_lun(sdev->lun),
					  UNIT_DESC_PARAM_LU_Q_DEPTH,