Skip to content

Commit

Permalink
scsi: ufs: Print real incorrect request response code
Browse files Browse the repository at this point in the history
If UFS device responds an unknown request response code, we can not know
what it was via logs because the code is replaced by "DID_ERROR << 16"
before log printing.

Fix this to provide precise request response code information for easier
issue breakdown.

Signed-off-by: Stanley Chu <[email protected]>
Reviewed-by: Tomas Winkler <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
Stanley Chu authored and Randall Huang committed Aug 12, 2019
1 parent 8dbf331 commit 6eca3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ufs/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6484,10 +6484,10 @@ ufshcd_transfer_rsp_status(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
"Reject UPIU not fully implemented\n");
break;
default:
result = DID_ERROR << 16;
dev_err(hba->dev,
"Unexpected request response code = %x\n",
result);
result = DID_ERROR << 16;
break;
}
break;
Expand Down

0 comments on commit 6eca3b5

Please sign in to comment.