Skip to content

Commit ff61c12

Browse files
committed
Add support for xhci-pci-renesas in the usb3 test.
1 parent a948598 commit ff61c12

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

checkbox-support/checkbox_support/udev.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def get_udev_block_devices(udev_client):
9898
def get_udev_xhci_devices(udev_client):
9999
"""
100100
Get a list of all devices on pci slots using xhci drivers
101+
102+
Detects various xHCI driver variants including:
103+
- xhci_hcd (generic)
104+
- xhci-hcd (ARM variant)
105+
- xhci-pci-renesas (Renesas-specific)
101106
"""
102107
# setup an enumerator so that we can list devices
103108
enumerator = GUdev.Enumerator(client=udev_client)
@@ -106,7 +111,7 @@ def get_udev_xhci_devices(udev_client):
106111
devices = [
107112
device
108113
for device in enumerator.execute()
109-
if (device.get_driver() == "xhci_hcd")
114+
if device.get_driver() and device.get_driver().startswith("xhci")
110115
]
111116
# Sort the list, this is not needed but makes various debugging dumps
112117
# look better.

providers/base/bin/removable_storage_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ def get_disks_xhci(self):
511511
if (
512512
device.get_driver() == "xhci-hcd"
513513
or device.get_driver() == "xhci_hcd"
514+
or device.get_driver() == "xhci-pci-renesas"
514515
)
515516
]
516517
for udev_device_xhci in udev_devices_xhci:

0 commit comments

Comments
 (0)