Home
last modified time | relevance | path

Searched hist:"6 a8f377ca2e7df7257118262bdf7e8e1412915ef" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/cmd/
H A Drockusb.c6a8f377ca2e7df7257118262bdf7e8e1412915ef Tue May 28 02:31:44 UTC 2024 William Wu <william.wu@rock-chips.com> cmd: rockusb: Fix usb3 switch for multi block dev

For multi block dev, the upgrade tool support to switch
block dev, however, if switch to usb3, the current code
will do rkusb_fini() to reinitialize the g_rkusb->ums,
and get the default the block dev.

Test on RK3576 EVB1 with EMMC and UFS block device.

1. Enter Maskrom.
2. Download loader.
3. Switch to EMMC via upgrade tool.
4. Switch to USB3 via upgrade tool.

We can find that after switch to usb3, the block dev
switch back to UFS, rather than the expected EMMC.

Scandev: scsi 0 m0
Bootdev: scsi 0
RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0xee4c000
|usb device is high-speed
-mmc@2a330000: 0
scandev: mmc 0 m0
RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x747c000
\rockusb switch to usb3
RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0xee4c000
usb device is super-speed

With this patch, when do switch to usb3, it avoid to
call the rkusb_fini() and rkusb_init().

Change-Id: I26ae7e12e1c014c53e7c69b93f813cb5041af263
Signed-off-by: William Wu <william.wu@rock-chips.com>