diff options
author | andy.hu <andy.hu@starfivetech.com> | 2023-08-30 12:53:42 +0300 |
---|---|---|
committer | andy.hu <andy.hu@starfivetech.com> | 2023-08-30 12:53:42 +0300 |
commit | 2a533dc9209ebe8a085c03020ae0cded0e098741 (patch) | |
tree | 4a058d5e501ec7d7da0668e99a0130a94d1d4a53 | |
parent | 0b2f3140a5602cc7f6555a06c8aa4723ec60e396 (diff) | |
parent | 0ff6454c13fdc899bf17c225953ce8990fc61117 (diff) | |
download | u-boot-2a533dc9209ebe8a085c03020ae0cded0e098741.tar.xz |
Merge branch 'CR_7136_fix_usb_device_xfer_timeout_minda' into 'jh7110-master'
CR_7136 usb: cdns3: Set the SS EP config bit by usb SS speed
See merge request sdk/u-boot!65
-rw-r--r-- | drivers/usb/cdns3/gadget.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index fcaeab9cc1..0598b4c3b3 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -1569,15 +1569,17 @@ void cdns3_ep_config(struct cdns3_endpoint *priv_ep) case USB_ENDPOINT_XFER_INT: ep_cfg = EP_CFG_EPTYPE(USB_ENDPOINT_XFER_INT); - if ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || - priv_dev->dev_ver > DEV_VER_V2) + if ((priv_dev->gadget.speed >= USB_SPEED_SUPER) && + ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || + priv_dev->dev_ver > DEV_VER_V2)) ep_cfg |= EP_CFG_TDL_CHK; break; case USB_ENDPOINT_XFER_BULK: ep_cfg = EP_CFG_EPTYPE(USB_ENDPOINT_XFER_BULK); - if ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || - priv_dev->dev_ver > DEV_VER_V2) + if ((priv_dev->gadget.speed >= USB_SPEED_SUPER) && + ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || + priv_dev->dev_ver > DEV_VER_V2)) ep_cfg |= EP_CFG_TDL_CHK; break; default: |