]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/amd_node: Add a smn_read_register() helper
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 17 Feb 2025 23:17:41 +0000 (17:17 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 18 Feb 2025 17:14:29 +0000 (18:14 +0100)
commitc893ee3f95f16fcb98da934d61483d0b7d8ed568
tree9793eadcf0f48b3c0f76f54dcbddd439cfe154b9
parent6b06755af6679fd7c98ebc017ac31c8a74127538
x86/amd_node: Add a smn_read_register() helper

Some of the ACP drivers will poll registers through SMN using
read_poll_timeout() which requires returning the result of the register read
as the argument.

Add a helper to do just that.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250217231747.1656228-2-superm1@kernel.org
arch/x86/include/asm/amd_node.h