]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel_scu_ipc: Replace workaround by 32-bit IO
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2024 13:34:30 +0000 (16:34 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 08:34:04 +0000 (11:34 +0300)
commit8b142950a5a718d55b09f08900306c75ceed2cf9
tree9f2d8afba3aa199a6d765391f28613a5b39089b5
parent6bd35252102e2b79acb54c74527c81c09f690759
platform/x86: intel_scu_ipc: Replace workaround by 32-bit IO

The theory is that the so called workaround in pwr_reg_rdwr() is
the actual reader of the data in 32-bit chunks. For some reason
the 8-bit IO won't fail after that. Replace the workaround by using
32-bit IO explicitly and then memcpy() as much data as was requested
by the user. The same approach is already in use in
intel_scu_ipc_dev_command_with_size().

Tested-by: Ferry Toth <fntoth@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241021133705.2933464-3-andriy.shevchenko@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c