Skip to content

Commit

Permalink
scsi: ufs: core: Correct clear TM error log
Browse files Browse the repository at this point in the history
The clear TM function error log status was inverted.

Fixes: 4693fad ("scsi: ufs: core: Log error handler activity")
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20231003022002.25578-1-peter.wang@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Peter Wang authored and Martin K. Petersen committed Oct 10, 2023
1 parent b481f64 commit a20c435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ufs/core/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6895,7 +6895,7 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag)
mask, 0, 1000, 1000);

dev_err(hba->dev, "Clearing task management function with tag %d %s\n",
tag, err ? "succeeded" : "failed");
tag, err < 0 ? "failed" : "succeeded");

out:
return err;
Expand Down

0 comments on commit a20c435

Please sign in to comment.