crosvm/usb_util
Ryuichiro Chiba e4d479f325 devices: usb: Set the PORT SPEED field in the PORTSC register to a correct value
Linux xHCI controller driver retrieves speed information of a device
from the PORT SPEED field in the PORTSC register.

This change sets this field to a correct value got from the host OS
controller.

BUG=b:242933343
TEST=`./tools/presubmit`
TEST=Crostini recognizes a high-speed USB device on brya and kukui
```
$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
```

Change-Id: I1e78be08ba348ca5235ab443a7e7dd3ce78fa714
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4383569
Reviewed-by: Morg <morg@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ryuichiro Chiba <chibar@chromium.org>
2023-04-05 07:44:42 +00:00
..
src devices: usb: Set the PORT SPEED field in the PORTSC register to a correct value 2023-04-05 07:44:42 +00:00
Cargo.toml crosvm: Partially convert DataInit to zerocopy (2/n) 2023-02-07 23:08:23 +00:00