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

Commit 26a639db authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Fix sending unsupported SCSI command"

parents e6edf782 96309b5f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2078,6 +2078,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
	/* allow SCSI layer to restart the device in case of errors */
	sdev->allow_restart = 1;

	/* REPORT SUPPORTED OPERATION CODES is not supported */
	sdev->no_report_opcodes = 1;

	lun_qdepth = ufshcd_read_sdev_qdepth(hba, sdev);
	if (lun_qdepth <= 0)
		/* eventually, we can figure out the real queue depth */