usb: core: allow zero packet flag for interrupt urbs
authorAmit Virdi <amit.virdi@st.com>
Mon, 21 Jul 2014 05:16:18 +0000 (10:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 23:30:58 +0000 (16:30 -0700)
commit9672f0feb566423deb245032a1c9a7a14dacb6eb
tree8524beac8a2737efb47527ed06e1e43955d13e3d
parentb1bd3f1a398ef27dd09a594c38dde34472b453af
usb: core: allow zero packet flag for interrupt urbs

Section 4.4.7.2 "Interrupt Transfer Bandwidth Requirements" of the USB3.0 spec
says:
A zero-length data payload is a valid transfer and may be useful for
some implementations.

So, extend the logic of allowing URB_ZERO_PACKET to interrupt urbs too.
Otherwise, the kernel throws warning of BOGUS transfer flags.

Signed-off-by: Amit Virdi <amit.virdi@st.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/urb.c