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

Commit 628a0140 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: correct the super speed check api"

parents a95bc502 444f3179
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -760,8 +760,8 @@ static inline bool dwc3_msm_is_dev_superspeed(struct dwc3_msm *mdwc)
	u8 speed;

	speed = dwc3_msm_read_reg(mdwc->base, DWC3_DSTS) & DWC3_DSTS_CONNECTSPD;
	if ((speed & DWC3_DSTS_SUPERSPEED) ||
			(speed & DWC3_DSTS_SUPERSPEED_PLUS)) {
	if ((speed == DWC3_DSTS_SUPERSPEED) ||
			(speed == DWC3_DSTS_SUPERSPEED_PLUS)) {
		mdwc->ss_phy->flags |= DEVICE_IN_SS_MODE;
		return true;
	}