Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lsusb tree mode to match lsusb #53

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Update lsusb tree mode to match lsusb #53

merged 4 commits into from
Nov 5, 2024

Conversation

tuna-f1sh
Copy link
Owner

Updates to bring --lsusb --tree inline with lsusb.

  • Pads Port and Dev number with 3 leading zeros like lsusb.
  • Adds the number of ports to the driver if device is a hub: eg xhci_hcd/4p - 4 ports.
  • get_sysfs_readlink will switch based on root_hub (usbX) to obtain host controller driver like lsusb. More useful than generic 'usb' driver.

@tuna-f1sh tuna-f1sh changed the title Update lsusb tree mode to match Update lsusb tree mode to match lsusb Nov 5, 2024
@tuna-f1sh tuna-f1sh merged commit e408fec into main Nov 5, 2024
4 checks passed
@tuna-f1sh tuna-f1sh deleted the lsusb-tree branch November 5, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant