]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: core: Exclude UECxx from SFR dump list
authorKiwoong Kim <kwmad.kim@samsung.com>
Thu, 31 Mar 2022 01:24:05 +0000 (10:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:20 +0000 (16:59 +0200)
commita4aa259cab0ea64f2ea0db4df43c1453b17766a4
treeeb2983d55413db7b6f95ecd92f2c92b0ec4f489f
parent2e9df1b09f72d17d722224d6248a446542a0f75c
scsi: ufs: core: Exclude UECxx from SFR dump list

[ Upstream commit ef60031022eb6d972aac86ca26c98c33e1289436 ]

Some devices may return invalid or zeroed data during an UIC error
condition. In addition, reading these SFRs will clear them. This means the
subsequent error handling will not be able to see them and therefore no
error handling will be scheduled.

Skip reading these SFRs in ufshcd_dump_regs().

Link: https://lore.kernel.org/r/1648689845-33521-1-git-send-email-kwmad.kim@samsung.com
Fixes: d67247566450 ("scsi: ufs: Use explicit access size in ufshcd_dump_regs")
Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufshcd.c