[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the intended behaviour of usb_host_get_port for root hubs?
From: |
Gerd Hoffmann |
Subject: |
Re: What is the intended behaviour of usb_host_get_port for root hubs? |
Date: |
Tue, 9 Mar 2021 10:43:33 +0100 |
Hi,
> Of course, reading the current code more carefully, usb_host_get_port
> is never actually called with a hub device (let alone a root hub),
Ah, the root hub itself. I've assumed you mean a device plugged into
the root hub. That explains the confusion.
Yes, passing through hubs is simply not supported, only individual
devices, so that should never happen.
> so I guess it is a valid assumption that libusb_get_port_numbers will
> always return at least 1 in the non-error path.
Correct.
take care,
Gerd