]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: amd-sbi: Optimize the wait condition for mailbox command completion
authorAkshay Gupta <akshay.gupta@amd.com>
Mon, 28 Apr 2025 06:30:29 +0000 (06:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 12:44:40 +0000 (14:44 +0200)
commit587d2c625146c7ff62325ebb9a8668e666400dc4
tree8d75b291d58ae3de3e90dad9a8cb14167d45af19
parent013f7e7131bd84a83ed3b70855b2667a89bb3c98
misc: amd-sbi: Optimize the wait condition for mailbox command completion

- optimize the wait condition to indicate command completion
  by replacing the do while loop with regmap subsystem API
  regmap_read_poll_timeout()

Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <akshay.gupta@amd.com>
Link: https://lore.kernel.org/r/20250428063034.2145566-6-akshay.gupta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/amd-sbi/rmi-core.c