Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67172eca authored by Rajesh Bharathwaj's avatar Rajesh Bharathwaj
Browse files

usb: dwc3-msm: Call client on usb connect/disconnect events



Add support to call vxr7200 driver's function when usb cable is connected
or disconnected.

Change-Id: I9662376fb70a276084027d384548c933f6b939df
Signed-off-by: default avatarRajesh Bharathwaj <rajeshbharathwaj@codeaurora.org>
parent 244c9ad7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@
#ifdef CONFIG_TUSB1064_XR_MISC
#include "../../misc/tusb1064.h"
#endif
#ifdef CONFIG_VXR200_XR_MISC
#include "../../misc/vxr7200.h"
#endif


#define SDP_CONNETION_CHECK_TIME 10000 /* in ms */
@@ -2966,6 +2969,10 @@ static void dwc3_resume_work(struct work_struct *w)
#ifdef CONFIG_TUSB1064_XR_MISC
			tusb1064_usb_event(val.intval ? true : false);
#endif
#ifdef CONFIG_VXR200_XR_MISC
			vxr7200_usb_event(true);
#endif

		}

		dbg_event(0xFF, "cc_state", mdwc->typec_orientation);
@@ -4661,6 +4668,10 @@ static void dwc3_otg_sm_work(struct work_struct *w)
		} else {
			dwc3_msm_gadget_vbus_draw(mdwc, 0);
			dev_dbg(mdwc->dev, "Cable disconnected\n");
#ifdef CONFIG_VXR200_XR_MISC
			vxr7200_usb_event(false);
#endif

		}
		break;