From: Mian Yousaf Kaukab Date: Tue, 4 Jan 2011 11:47:02 +0000 (+0100) Subject: usb: musb: maintain three states for buffer mappings instead of two X-Git-Tag: v2.6.38-rc5~47^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c65bfa62b7185bdeb063c2a637f501f00997d068;p=pandora-kernel.git usb: musb: maintain three states for buffer mappings instead of two If dma buffers are mapped by a higher layer, with a boolean musb_request.mapped it is still possible to call dma_sync_single_for_device() from musb_g_giveback(), even if txstate()/rxstate() has called unmap_dma_buffer() before falling back to pio mode. Moreover, check for musb_ep->dma is moved within map_dma_buffer() so where applicable checks for it are removed. And where possible, checks for is_dma_capable() are merged with buffer map state check. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed