Home
last modified time | relevance | path

Searched hist:"166014916 f9efd95ce5732d23a0574ccd876da27" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/host/
H A Ddwc2.c166014916f9efd95ce5732d23a0574ccd876da27 Tue Oct 29 07:20:46 UTC 2024 Frank Wang <frank.wang@rock-chips.com> usb: host: dwc2: fix periodic tx fifo config error

We found some errors when copy bulk data from U-Disk, and the below
logs are reported if we enable usb_storage and dwc2 debug macro.

=> usb read 0x20000000 0x0021dc4b 0xf1d1
[...]
.read10: start 21fefb blocks f0
COMMAND phase
dwc2_submit_bulk_msg: dev='usb@ff300000', udev=000000003bcbacd0
chunk_msg: msg: pipe c0010203 pid 0 in 0 len 31
transfer_chunk: chunk: pid 0 xfer_len 31 pkts 1
wait_for_chhltd: HCINT=00000082 sub=31 toggle=0
wait_for_chhltd: Error (HCINT=00000082)
usb_stor_BBB_comdat:usb_bulk_msg error
failed to send CBW status 0
BBB_reset

The root cause is Periodic Tx FIFO configured abortively for after
setting the ForceHstMode bit, the application must wait at least 25 ms
before the change to take effect (DWC2 Databook 3.10a Table 5-10).

Test on RK3326 platform, delay 30 ms can fix the issue.

Change-Id: I585a9dd44bafe1de0f6cffd8024708d8d3450bf0
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>