]> git.ipfire.org Git - thirdparty/linux.git/commit
misc: amd-sbi: Add support for Turin platform
authorAkshay Gupta <akshay.gupta@amd.com>
Mon, 15 Sep 2025 10:36:46 +0000 (10:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:59:57 +0000 (07:59 +0200)
commit45392fd4394cb8d4b39ba0f144651aba05b7b2a7
tree01fcdc26545e8cee4d506747ed43ad0b9994bc95
parent5c7dddd7360b9f24d535c34dcd4101fe41b35aa1
misc: amd-sbi: Add support for Turin platform

- RMI registers addresses in AMD new platforms are 2 bytes,
  on previous processors the address size is 1 byte.
- Implement logic to identify register address size at runtime.
- The identification is done in first transaction using the
  Revision register.
- The revision register can be read using 1 byte in both, older and
  newer platforms.
- However, sending 1 byte on later platform can cause unrecoverable error.

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-3-akshay.gupta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/amd-sbi/rmi-i2c.c