usb: ehci: only prepare zero packet for out transfer if required
authorMing Lei <tom.leiming@gmail.com>
Mon, 5 Sep 2011 13:05:56 +0000 (21:05 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Sep 2011 08:38:59 +0000 (01:38 -0700)
commit9a971dda8208e0982094f29ef34bd190f2a081bd
treee80657b8493ba68235751781ab9b0c4411428827
parent0412560e18b4330366653819c0c5e73a743ff7e8
usb: ehci: only prepare zero packet for out transfer if required

Obviously, ZLP is only required for transfer of OUT direction,
so just take same policy with UHCI for ZLP packet.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-q.c