Skip to content

Commit

Permalink
drivers: net: usb: pegasus: fix control urb submission
Browse files Browse the repository at this point in the history
Pegasus driver used single callback for sync and async control URBs.
Special flags were employed to distinguish between both, but due to flawed
logic it didn't always work.  As a result of this change
[get|set]_registers() are now much simpler.  Async write is also leaner
and does not use single, statically allocated memory for usb_ctrlrequest,
which is another potential race when asynchronously submitting URBs.

Signed-off-by: Petko Manolov <petkan@nucleusys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Petko Manolov authored and David S. Miller committed Apr 29, 2013
1 parent 2bd6470 commit 323b349
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 217 deletions.
Loading

0 comments on commit 323b349

Please sign in to comment.