Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264950
b: refs/heads/master
c: 9a971dd
h: refs/heads/master
v: v3
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Sep 18, 2011
1 parent 0237271 commit acac4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0412560e18b4330366653819c0c5e73a743ff7e8
refs/heads/master: 9a971dda8208e0982094f29ef34bd190f2a081bd
5 changes: 3 additions & 2 deletions trunk/drivers/usb/host/ehci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ qh_urb_transaction (

/*
* control requests may need a terminating data "status" ack;
* bulk ones may need a terminating short packet (zero length).
* other OUT ones may need a terminating short packet
* (zero length).
*/
if (likely (urb->transfer_buffer_length != 0)) {
int one_more = 0;
Expand All @@ -731,7 +732,7 @@ qh_urb_transaction (
one_more = 1;
token ^= 0x0100; /* "in" <--> "out" */
token |= QTD_TOGGLE; /* force DATA1 */
} else if (usb_pipebulk (urb->pipe)
} else if (usb_pipeout(urb->pipe)
&& (urb->transfer_flags & URB_ZERO_PACKET)
&& !(urb->transfer_buffer_length % maxpacket)) {
one_more = 1;
Expand Down

0 comments on commit acac4c6

Please sign in to comment.