This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TUSB8041: Port disable/power down

Part Number: TUSB8041

Tool/software:

Hi,

I am trying to use libusb library to control hub port power on a linux system. The power on port is closed after I called the following code:

#define USB_PORT_FEAT_POWER = (1 << 3)
#define USB_CTRL_GET_TIMEOUT = 500
libusb_control_transfer(m_deviceHandle,
        LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_OTHER,
        LIBUSB_REQUEST_CLEAR_FEATURE,
        USB_PORT_FEAT_POWER,
        portIndexOnHub,
        nullptr,
        0,
        USB_CTRL_GET_TIMEOUT);

But I can still watch it by using linux command "lsusb", even though the usb device has been unplugged.

It seems that hub not to report port correct status to the host.

Is this a correct phenomenon? or if I need to do extra config to receive the change message?

Thanks

hanyu