]> www.infradead.org Git - nvme.git/commit
platform/chrome: cros_ec_lpc: MEC access can use an AML mutex
authorBen Walsh <ben@jubnut.com>
Wed, 5 Jun 2024 06:33:48 +0000 (07:33 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Thu, 6 Jun 2024 03:11:51 +0000 (03:11 +0000)
commit60c7df66450e3a7821a8d68496c20c95de6a15c5
treeb22290ea49bde8509c72db3c6f543a2c3dd431ea
parent68dbac0a58ef7d82bc78dcb7e5ab5db2c6dfb489
platform/chrome: cros_ec_lpc: MEC access can use an AML mutex

Framework Laptops have ACPI code which accesses the MEC memory. It
uses an AML mutex to prevent concurrent access. But the cros_ec_lpc
driver was not aware of this mutex. The ACPI code and LPC driver both
attempted to talk to the EC at the same time, messing up communication
with the EC.

Allow the LPC driver MEC code to find and use the AML mutex.

Tested-by: Dustin L. Howett <dustin@howett.net>
Signed-off-by: Ben Walsh <ben@jubnut.com>
Link: https://lore.kernel.org/r/20240605063351.14836-3-ben@jubnut.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc_mec.c
drivers/platform/chrome/cros_ec_lpc_mec.h