From e0ec20d8ff3ec2f9cb34ca755489a53db92bda3b Mon Sep 17 00:00:00 2001 From: Li Jun Date: Wed, 9 Jan 2019 12:41:29 +0530 Subject: [PATCH] MLK-16013-33 usb: 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 Signed-off-by: Vipul Kumar --- drivers/usb/typec/tcpm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index 50a16677574e..8f60ae095be5 100644 --- a/drivers/usb/typec/tcpm.c +++ b/drivers/usb/typec/tcpm.c @@ -3578,8 +3578,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 GET_STATUS_SEND: tcpm_pd_send_control(port, PD_CTRL_GET_STATUS); -- 2.17.1