MLK-16013-33 staging: typec: Do not switch to unattached state for BIST
authorLi Jun <jun.li@nxp.com>
Fri, 28 Jul 2017 09:37:25 +0000 (17:37 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:21 +0000 (15:36 -0500)
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 <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drivers/staging/typec/tcpm.c

index dbb7b4b..f14aae3 100644 (file)
@@ -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);