-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow retrieving the port a device is connected to #2357
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tuh_get_port() is a confusing API name and its return in the PR is inconsistent as well. We can have an public API for hcd_devtree_get_info()
with the name e.g tuh_devtree_get_info()
Something like this? I'm in doubt where everything should land... |
@hathach ping, is this what you were looking for? |
@hathach how can we bring this further? |
Describe the PR
Sometimes it may be handy to know to which port a device is connected to, e.g. when dealing with identical devices.
This change allows the port number of a device to be retrieved.
Additional context
Supports root hub and external hub ports.