[PATCH v2 0/4] platform/chrome: cros_ec_typec: Reorganize mux configuration

From: Prashant Malani
Date: Tue Feb 08 2022 - 13:47:44 EST


This is a short series that reorganizes when mux configuration occurs
during Type C port updates. The first 2 patches are minor refactors
which move some of the mux update logic to within
cros_typec_configure_mux(). The third patch moves
cros_typec_configure_mux() itself to be earlier in
cros_typec_port_update().

The final patch updates the stashed mux flag when a partner removal has
occured.

v1:
https://lore.kernel.org/chrome-platform/20220207214026.1526151-1-pmalani@xxxxxxxxxxxx/

Changes in v2:
- Addressed minor comments (unrelated variable initialization. variable
name change, return value can be 0).

Prashant Malani (4):
platform/chrome: cros_ec_typec: Move mux flag checks
platform/chrome: cros_ec_typec: Get mux state inside configure_mux
platform/chrome: cros_ec_typec: Configure muxes at start of port
update
platform/chrome: cros_ec_typec: Update mux flags during partner
removal

drivers/platform/chrome/cros_ec_typec.c | 76 +++++++++++--------------
1 file changed, 34 insertions(+), 42 deletions(-)

--
2.35.0.263.gb82422642f-goog