platform/chrome: cros_typec_switch: Add event check
authorPrashant Malani <pmalani@chromium.org>
Mon, 11 Jul 2022 07:23:00 +0000 (07:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jul 2022 12:44:08 +0000 (14:44 +0200)
commitbb53ad958012f5a8d88b3b7159c22b3b877601bb
tree58e12f8090995b6ed6ba7bd187947287ecc3ceeb
parent34f375f0fdf67f8804142fa37a28e73426d4c1df
platform/chrome: cros_typec_switch: Add event check

The Chrome 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.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20220711072333.2064341-7-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/chrome/cros_typec_switch.c