MLK-9637-2 usb: otg: test: add otg_srp_reqd flag in otg_fsm
authorLi Jun <B47624@freescale.com>
Sat, 27 Sep 2014 11:49:56 +0000 (19:49 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:11 +0000 (14:47 -0500)
This patch adds flag otg_srp_reqd in struct otg_fsm to indicate A device
as host wants B-UUT to do SRP once it ends the session.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit 8e5f1b6b12ec77ec591909b09727049ffff37b9c)
(cherry picked from commit 7eaf8cf8ff375917e9972cca69bcecd6d807e6db)

include/linux/usb/otg-fsm.h

index df3a60a..f6d6daf 100644 (file)
@@ -191,6 +191,7 @@ struct otg_fsm {
        /* OTG test device */
        int tst_maint;
        int otg_vbus_off;
+       int otg_srp_reqd;
 
        /* Informative variables. All unused as of now */
        int a_bus_drop_inf;