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

Commit ddd7df2b 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 cable insertion"

parents a4dc5255 320f837d
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -54,6 +54,10 @@
#include "dbm.h"
#include "dbm.h"
#include "debug.h"
#include "debug.h"
#include "xhci.h"
#include "xhci.h"
#ifdef CONFIG_TUSB1064_XR_MISC
#include "../../misc/tusb1064.h"
#endif



#define SDP_CONNETION_CHECK_TIME 10000 /* in ms */
#define SDP_CONNETION_CHECK_TIME 10000 /* in ms */


@@ -2956,9 +2960,13 @@ static void dwc3_resume_work(struct work_struct *w)
				EXTCON_PROP_USB_TYPEC_POLARITY, &val);
				EXTCON_PROP_USB_TYPEC_POLARITY, &val);
		if (ret)
		if (ret)
			mdwc->typec_orientation = ORIENTATION_NONE;
			mdwc->typec_orientation = ORIENTATION_NONE;
		else
		else {
			mdwc->typec_orientation = val.intval ?
			mdwc->typec_orientation = val.intval ?
					ORIENTATION_CC2 : ORIENTATION_CC1;
					ORIENTATION_CC2 : ORIENTATION_CC1;
#ifdef CONFIG_TUSB1064_XR_MISC
			tusb1064_usb_event(val.intval ? true : false);
#endif
		}


		dbg_event(0xFF, "cc_state", mdwc->typec_orientation);
		dbg_event(0xFF, "cc_state", mdwc->typec_orientation);