Loading drivers/usb/dwc3/dwc3-msm.c +9 −1 Original line number Original line Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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); Loading Loading
drivers/usb/dwc3/dwc3-msm.c +9 −1 Original line number Original line Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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); Loading