]> git.hungrycats.org Git - linux/commit
scsi: ufs: exynos: Add check inside exynos_ufs_config_smu()
authorPeter Griffin <peter.griffin@linaro.org>
Thu, 31 Oct 2024 15:00:23 +0000 (15:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:06 +0000 (10:41 +0100)
commit0581ec70b351f52cb7ffd4bf7309cb73efcec20b
treeafbe9fd97a35cac1a5a858963f20fe1fe3c35a67
parent20c26357826457dc7c8145297e60ddc012e18914
scsi: ufs: exynos: Add check inside exynos_ufs_config_smu()

commit c662cedea14efdcf373d8d886ec18019d50e0772 upstream.

Move the EXYNOS_UFS_OPT_UFSPR_SECURE check inside
exynos_ufs_config_smu().

This way all call sites will benefit from the check. This fixes a bug
currently in the exynos_ufs_resume() path on gs101 as it calls
exynos_ufs_config_smu() and we end up accessing registers that can only
be accessed from secure world which results in a serror.

Fixes: d11e0a318df8 ("scsi: ufs: exynos: Add support for Tensor gs101 SoC")
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20241031150033.3440894-5-peter.griffin@linaro.org
Cc: stable@vger.kernel.org
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ufs/host/ufs-exynos.c