]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29f435c83502938ee1af5aa27a1f49d1c5c69a03
tree58e12f8090995b6ed6ba7bd187947287ecc3ceeb
parent478f5e7ccc44383af6a30add5481f5c8ae76c3a4
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