]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: Usbmon setup DMA patch
authorPete Zaitcev <zaitcev@redhat.com>
Thu, 1 Sep 2005 21:35:05 +0000 (14:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Sep 2005 19:23:54 +0000 (12:23 -0700)
Alan Stern sent me this patch. It goes on top of the patch the adds
mon_dmapeek:
 http://ftp.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-04-usb/usb-usbmon-dma-areas.patch

Please be warned about ordering requirements or the build may fail.

Actually, mon_dmapeek is generic enough to support SETUP packets too.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_text.c

index 417464dea9f6457948a3caba9f82a4170c81e30a..17d0190ef64ecce708999654a8e278c96d6a3558 100644 (file)
@@ -79,7 +79,7 @@ static inline char mon_text_get_setup(struct mon_event_text *ep,
                return '-';
 
        if (urb->transfer_flags & URB_NO_SETUP_DMA_MAP)
-               return 'D';
+               return mon_dmapeek(ep->setup, urb->setup_dma, SETUP_MAX);
        if (urb->setup_packet == NULL)
                return 'Z';     /* '0' would be not as pretty. */