platform/chrome: cros_typec_switch: Add event check
authorPrashant Malani <pmalani@chromium.org>
Tue, 16 Aug 2022 21:48:32 +0000 (21:48 +0000)
committerPrashant Malani <pmalani@chromium.org>
Thu, 18 Aug 2022 22:20:35 +0000 (22:20 +0000)
commitcf6c767244ed599492ac4275d1d94435d9ec7917
treeed7a50e93bb82d7af2de2e3338dfa73ae68e1898
parentd4536a216c3f8ea0abcf90110750eb297ce48b45
platform/chrome: cros_typec_switch: Add event check

The ChromeOS EC updates Type-C status events when mux set requests from
the Application Processor (AP) are completed. Add a check to the
flow of configuring muxes to look for this status done bit, so that
the driver is aware that the mux set completed successfully or not.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220816214857.2088914-5-pmalani@chromium.org
drivers/platform/chrome/cros_typec_switch.c