diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2019-10-21 16:20:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-12 12:11:48 +0100 |
commit | 65c0bbac0a29de4356e814a0fed838cb4484364c (patch) | |
tree | 2d2f2a48e3d846549744115dd6d77ff3761b23d9 /kernel | |
parent | b0cdffaa546e24acf92ab3b0d4e917a51aff6a82 (diff) |
USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein
commit 6dabeb891c001c592645df2f477fed9f5d959987 upstream.
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>
Link: https://lore.kernel.org/r/4ae9e68ebca02f08a93ac61fe065057c9a01f0a8.1571667489.git.andreyknvl@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions