USB: fix ep_queue request buf dma map and unmap.
authorwlf <wulf@rock-chips.com>
Wed, 16 Jul 2014 06:13:57 +0000 (14:13 +0800)
committerwlf <wulf@rock-chips.com>
Wed, 16 Jul 2014 06:13:57 +0000 (14:13 +0800)
commit86d84a1a6b779d668b8686c2c42a1659108cd6d0
treeca03f7be4abc5fb794caf19bfebcdffd6c4f611d
parent6d10fa81b32256087cc481c3289153b75e3f10eb
USB: fix ep_queue request buf dma map and unmap.

1. For 0 length buf, perform dma map with length 4
   to avoid kernel stack dump occurred.
2. Do dma unmap before req->complete to avoid dma
   addr reused after unmapped.
drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c