| 3c7547fc | 09-Nov-2023 |
William Wu <william.wu@rock-chips.com> |
usb: rockusb: Fix buf for read capacity command
The current code clear all bits of buf[1] of capacity if the platform not support usb3 rockusb, it will also clear the New IDB feature and Switch Stor
usb: rockusb: Fix buf for read capacity command
The current code clear all bits of buf[1] of capacity if the platform not support usb3 rockusb, it will also clear the New IDB feature and Switch Storage feature. This patch only clear the Switch USB3 feature in this case.
Fixes: 36c87911a804 ("usb: rockusb: Add support for usb3 download") Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: I34f236b30121ad7095f7ea34521cc289033532a8
show more ...
|
| 7b83b3a6 | 02-Nov-2023 |
Jianwei Zheng <jianwei.zheng@rock-chips.com> |
usb: gadget: rockusb: avoid enter maskrom if usb cable not connected
On platforms which support rockusb3.0, when we use "reboot loader" to restart system to loader mode and USB cable is not connecte
usb: gadget: rockusb: avoid enter maskrom if usb cable not connected
On platforms which support rockusb3.0, when we use "reboot loader" to restart system to loader mode and USB cable is not connected, in this case USB3 polling will timeout and USB speed will switch to USB2 and re-enumerate. But on current code, -ENODEV will be returned which cause entering rockusb failed and error entering maskrom.
error log: RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x3a3e000 wait for usb3 connect timeout RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x3a3e000 Enter rockusb failed, fallback to bootrom...
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com> Change-Id: I3ecd408ea1605ad81839274f167353f3de9eb6c8
show more ...
|