summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Gupta <akshay.gupta@amd.com>2025-09-15 10:36:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-22 07:59:57 +0200
commitdd68c06380f67beda28b0cb7d77a75b91a6174e4 (patch)
tree383357bdba232057b1dbc3596df60833fc4af75b
parent45392fd4394cb8d4b39ba0f144651aba05b7b2a7 (diff)
misc: amd-sbi: CPUID/MCAMSR protocol for Revision 0x21
- CPUID and MCAMSR protocol for newer platform with revision 0x21 and later is modified as per two byte register address size. - Modify the CPUID and MCAMSR protocol to return error, "-EOPNOTSUPP", for revision 0x21. - Next set of patches will add support for CPUID and MCAMSR for Turin and later platforms. Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com> Signed-off-by: Akshay Gupta <akshay.gupta@amd.com> Link: https://patch.msgid.link/20250915103649.1705078-4-akshay.gupta@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/amd-sbi/rmi-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/amd-sbi/rmi-core.c b/drivers/misc/amd-sbi/rmi-core.c
index 3dec2fc00124..bf534ba757db 100644
--- a/drivers/misc/amd-sbi/rmi-core.c
+++ b/drivers/misc/amd-sbi/rmi-core.c
@@ -122,8 +122,8 @@ static int rmi_cpuid_read(struct sbrmi_data *data,
if (ret < 0)
goto exit_unlock;
}
- /* CPUID protocol for REV 0x10 is not supported*/
- if (data->rev == 0x10) {
+ /* CPUID protocol for REV 0x20 is only supported*/
+ if (data->rev != 0x20) {
ret = -EOPNOTSUPP;
goto exit_unlock;
}
@@ -203,8 +203,8 @@ static int rmi_mca_msr_read(struct sbrmi_data *data,
if (ret < 0)
goto exit_unlock;
}
- /* MCA MSR protocol for REV 0x10 is not supported*/
- if (data->rev == 0x10) {
+ /* MCA MSR protocol for REV 0x20 is supported*/
+ if (data->rev != 0x20) {
ret = -EOPNOTSUPP;
goto exit_unlock;
}