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

Commit db3e2517 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents d0f04659 67172eca
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);
@@ -4658,6 +4665,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;