RE: [PATCH v2 0/2] scsi: ufs: introduce a callback to override OCS value

김기웅 posted 2 patches 1 year, 3 months ago
Only 0 patches received!
There is a newer version of this series
RE: [PATCH v2 0/2] scsi: ufs: introduce a callback to override OCS value
Posted by 김기웅 1 year, 3 months ago
> +static enum utp_ocs exynos_ufs_override_cqe_ocs(enum utp_ocs ocs) {
> +	if (ocs == OCS_ABORTED)
> +		ocs = OCS_INVALID_COMMAND_STATUS;
> +	return ocs;
> +}
> 
> 
> I wonder if you have considered the case where the command is aborted
> by the host software or by the device itself?

I mean by the host software and Exynos host reports OCS_ABORTED only for the case when MCQ is enabled.

> 
> If you change OCS to OCS_INVALID_COMMAND_STATUS, there will report a
> DID_REQUEUE to SCSI.

Yes. That's what I meant, in order to process them properly after UFS initialization.

> 
> 
> Kind regards,
> Bean

Thank you.