diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2011-10-10 18:38:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-14 11:51:27 -0800 |
commit | 954aad8cd18c928e2db5229f6fa71c80d1c3d8b5 (patch) | |
tree | b14aa643608ee6ff2aaa861791f05c009ba3983f /drivers/usb/Makefile | |
parent | 001428e4871d6c62f5e16c62df681624d8b480c1 (diff) | |
download | linux-954aad8cd18c928e2db5229f6fa71c80d1c3d8b5.tar.gz linux-954aad8cd18c928e2db5229f6fa71c80d1c3d8b5.tar.xz |
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 'drivers/usb/Makefile')
0 files changed, 0 insertions, 0 deletions