From: Li Jun Date: Fri, 28 Jul 2017 09:37:25 +0000 (+0800) Subject: MLK-16013-33 staging: typec: Do not switch to unattached state for BIST X-Git-Tag: C0P2-H0.0--20200415~1900 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=b6098e38d72f0d6361bed81404f31d124d33294f;p=linux.git MLK-16013-33 staging: typec: Do not switch to unattached state for BIST If we received unsupported BIST command, we should by pass it and ready to accept following command for test, not unconditionly to set the port to be unattached state and terminate the test. Reviewed-by: Peter Chen Signed-off-by: Li Jun --- diff --git a/drivers/staging/typec/tcpm.c b/drivers/staging/typec/tcpm.c index dbb7b4bf3cea..f14aae356967 100644 --- a/drivers/staging/typec/tcpm.c +++ b/drivers/staging/typec/tcpm.c @@ -2733,8 +2733,6 @@ static void run_state_machine(struct tcpm_port *port) default: break; } - /* Always switch to unattached state */ - tcpm_set_state(port, unattached_state(port), 0); break; case ERROR_RECOVERY: tcpm_swap_complete(port, -EPROTO);