• Jim Lin's avatar
    usb: Add devaddr in struct usb_device · 4998f1ef
    Jim Lin authored
    The Clear_TT_Buffer request sent to the hub includes the address of
    the LS/FS child device in wValue field. usb_hub_clear_tt_buffer()
    uses udev->devnum to set the address wValue. This won't work for
    devices connected to xHC.
    
    For other host controllers udev->devnum is the same as the address of
    the usb device, chosen and set by usb core. With xHC the controller
    hardware assigns the address, and won't be the same as devnum.
    
    Here we add devaddr in "struct usb_device" for
    usb_hub_clear_tt_buffer() to use.
    Signed-off-by: default avatarJim Lin <jilin@nvidia.com>
    Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    4998f1ef
hub.c 172 KB