]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 21 Oct 2019 14:20:59 +0000 (16:20 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:36:03 +0000 (10:36 +0300)
commit15ac1d99b84578e6fac804bffcb5bec8d0424d77
tree208cc5ae6f63273c9ac7a6b7932a936b528377ff
parent1bff4a4e66b91ef55ef0265944d01d13be0eae43
USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein

Commit fea3409112a9 ("USB: add direction bit to urb->transfer_flags") has
added a usb_urb_dir_in() helper function that can be used to determine
the direction of the URB. With that patch USB_DIR_IN control requests with
wLength == 0 are considered out requests by real USB HCDs. This patch
changes dummy-hcd to use the usb_urb_dir_in() helper to match that
behavior.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/dummy_hcd.c