mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "usb: dwc3: correct the super speed check api"
This commit is contained in:
commit
628a014057
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue