summaryrefslogtreecommitdiffstats
path: root/drivers/usb/mon/mon_bin.c
diff options
context:
space:
mode:
authorPete Zaitcev2007-08-14 09:37:51 +0200
committerGreg Kroah-Hartman2007-10-12 23:55:14 +0200
commitcdd5a8fd24f5be43417a25c6feb8e7ebdce63098 (patch)
treeb17ebeb11b08674a495105946ebdb80d5cb15c24 /drivers/usb/mon/mon_bin.c
parentusbmon: Update pipe removal to suit my taste (diff)
downloadkernel-qcow2-linux-cdd5a8fd24f5be43417a25c6feb8e7ebdce63098.tar.gz
kernel-qcow2-linux-cdd5a8fd24f5be43417a25c6feb8e7ebdce63098.tar.xz
kernel-qcow2-linux-cdd5a8fd24f5be43417a25c6feb8e7ebdce63098.zip
usbmon: Drop DMA mapping for setup packet
Setup packet must be visible in virtual space. There's absolutely no good reason to implement any kind of zero-copy transfer of 8 bytes, and the documentation in usb.h is explicit about it. So, drop DMA remapping. Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/mon/mon_bin.c')
-rw-r--r--drivers/usb/mon/mon_bin.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c
index 5185e93dedef..3d6f03819ffd 100644
--- a/drivers/usb/mon/mon_bin.c
+++ b/drivers/usb/mon/mon_bin.c
@@ -361,10 +361,6 @@ static inline char mon_bin_get_setup(unsigned char *setupb,
if (!usb_endpoint_xfer_control(&urb->ep->desc) || ev_type != 'S')
return '-';
- if (urb->dev->bus->uses_dma &&
- (urb->transfer_flags & URB_NO_SETUP_DMA_MAP)) {
- return mon_dmapeek(setupb, urb->setup_dma, SETUP_LEN);
- }
if (urb->setup_packet == NULL)
return 'Z';