mmc: omap_hsmmc: add support for pre_req and post_req
authorPer Forlin <per.forlin@linaro.org>
Fri, 1 Jul 2011 16:55:23 +0000 (18:55 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:21:10 +0000 (17:21 -0400)
commit9782aff8df7e32e7745cc484f34ec471d9251651
tree0159cbdb6b2a63e81b695209e22e1062148ca691
parentaa8b683a7d392271ed349c6ab9f36b8c313794b7
mmc: omap_hsmmc: add support for pre_req and post_req

pre_req() runs dma_map_sg(), post_req() runs dma_unmap_sg.  If not calling
pre_req() before omap_hsmmc_request(), dma_map_sg will be issued before
starting the transfer.  It is optional to use pre_req().  If issuing
pre_req(), post_req() must be called as well.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c