On 9/24/24 1:51 AM, Peter Wang (王信友) wrote:
Is there any corner case that I might have overlooked?
Maybe I misunderstood how MediaTek controllers work. Anyway, if a MediaTek controller reports the completion status OCS_ABORTED, is there any chance that this status will be reported after ufshcd_release_scsi_cmd() has been called? Is there any chance that the controller writing OCS_ABORTED into the status field will race with the host software overwriting that status field while submitting a new command? Thanks, Bart.