summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorJim Lin <jilin@nvidia.com>2019-06-03 12:53:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-05 11:54:38 +0200
commit4998f1efd1904dd21697aeeead270e3eb97691dd (patch)
treec099adeec7515e42f6cbdecdbd0074328fc8da80 /drivers/usb/host/xhci-ring.c
parentusb: phy: mv-usb: Remove set but not used variable 'phy' (diff)
downloadlinux-4998f1efd1904dd21697aeeead270e3eb97691dd.tar.xz
linux-4998f1efd1904dd21697aeeead270e3eb97691dd.zip
usb: Add devaddr in struct usb_device
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: Jim Lin <jilin@nvidia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
0 files changed, 0 insertions, 0 deletions