Commit d75a2ff
usb: dwc2: return correct frame counts with high-speed host
The HFNUM register increments on every microframe in HS mode, and USB
device drivers expect the returned frame count to relate to the overall
frame. Right-shift the returned value by 3 to drop the microframe bits.
Signed-off-by: Jonathan Bell <[email protected]>1 parent 781f2e0 commit d75a2ff
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3800 | 3800 | | |
3801 | 3801 | | |
3802 | 3802 | | |
| 3803 | + | |
3803 | 3804 | | |
3804 | 3805 | | |
3805 | 3806 | | |
3806 | 3807 | | |
3807 | 3808 | | |
3808 | | - | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
3809 | 3814 | | |
3810 | 3815 | | |
3811 | 3816 | | |
| |||
0 commit comments