diff options
author | 2011-10-10 18:38:06 +0200 | |
---|---|---|
committer | 2011-11-14 11:51:27 -0800 | |
commit | 954aad8cd18c928e2db5229f6fa71c80d1c3d8b5 (patch) | |
tree | b14aa643608ee6ff2aaa861791f05c009ba3983f /tools/perf/scripts/python/bin/syscall-counts-report | |
parent | USB: gadgetfs: gadgetfs_disconnect: fix inconsistent lock state (diff) | |
download | linux-dev-954aad8cd18c928e2db5229f6fa71c80d1c3d8b5.tar.xz linux-dev-954aad8cd18c928e2db5229f6fa71c80d1c3d8b5.zip |
USB: ci13xxx_udc: fix logic to mark request dma addresses as invalid
The current driver sets the request's dma addr (mReq->req.dma) to 0 to
mark the DMA address as not valid. However some gadget drivers
(e.g. gadgetfs) set the request's dma addr to DMA_ADDR_INVALID to mark
the address as invalid. This leads to bogus data send because the
ci13xxx_udc driver assumes the request has already been mapped.
This patch fixes the problem, by using DMA_ADDR_INVALID instead of 0
to mark the request's DMA address as invalid.
Tested-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-report')
0 files changed, 0 insertions, 0 deletions