]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: use usb_endpoint_maxp instead of usb_maxpacket
authorYan Zhu <zhuyan34@huawei.com>
Thu, 18 Apr 2019 15:25:21 +0000 (23:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2019 12:23:34 +0000 (14:23 +0200)
commit5b625534ee4a56bcda37fe04a63ca4311466f8f4
tree8f9e1ece799ba0ed678134694c67f73bedd54cef
parenta91a9a62cbbe1a57d5d2ae8db35b5105e567c628
usb: host: use usb_endpoint_maxp instead of usb_maxpacket

fhci_queue_urb() shouldn't use urb->pipe to compute the maxpacket
size anyway.It should use usb_endpoint_maxp(&urb->ep->desc).

Signed-off-by: Yan Zhu <zhuyan34@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-sched.c