From b6098e38d72f0d6361bed81404f31d124d33294f Mon Sep 17 00:00:00 2001 From: Li Jun Date: Fri, 28 Jul 2017 17:37:25 +0800 Subject: [PATCH] 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 --- drivers/staging/typec/tcpm.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.17.1