diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2005-12-04 00:52:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 16:51:41 -0500 |
commit | b9b09422570e5e35a9f590a1ead63e711aefac8c (patch) | |
tree | dd392bc6d083ddf8617dbb9fedae00eb5aaf0319 /drivers/usb/mon | |
parent | 687f5f3428157bea4940dd967fd7b4e59c1b13b4 (diff) |
[PATCH] USB: Let usbmon collect less garbage
Alan Stern pointed out that (in 2.6 kernel) one successful submission results
in one callback, even for ISO-out transfers. Thus, the silly check can be
removed from usbmon. This reduces the amount of garbage printed in case
of ISO and Interrupt transfers.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/mon')
-rw-r--r-- | drivers/usb/mon/mon_text.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index 17d0190ef64e..611612146ae9 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -97,19 +97,12 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, | |||
97 | if (len >= DATA_MAX) | 97 | if (len >= DATA_MAX) |
98 | len = DATA_MAX; | 98 | len = DATA_MAX; |
99 | 99 | ||
100 | /* | 100 | if (usb_pipein(pipe)) { |
101 | * Bulk is easy to shortcut reliably. | 101 | if (ev_type == 'S') |
102 | * XXX Other pipe types need consideration. Currently, we overdo it | 102 | return '<'; |
103 | * and collect garbage for them: better more than less. | 103 | } else { |
104 | */ | 104 | if (ev_type == 'C') |
105 | if (usb_pipebulk(pipe) || usb_pipecontrol(pipe)) { | 105 | return '>'; |
106 | if (usb_pipein(pipe)) { | ||
107 | if (ev_type == 'S') | ||
108 | return '<'; | ||
109 | } else { | ||
110 | if (ev_type == 'C') | ||
111 | return '>'; | ||
112 | } | ||
113 | } | 106 | } |
114 | 107 | ||
115 | /* | 108 | /* |