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

This commit is contained in:
qctecmdr 2021-03-26 01:44:50 -07:00 • committed by Gerrit - the friendly Code Review server
commit 628a014057

View file

@ -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;
}