Re: [PATCH 2/2] mmc: mmci: simplify err check in mmci_post_request

2011-09-12 Thread Linus Walleij
On Mon, Aug 29, 2011 at 3:35 PM, Per Forlin wrote: > The error condition indicates that mmci_post_request() should cleanup > after the mmci_pre_request(). In this case the resources allocated by > device_prep_slave_sg() are freed by calling dmaengine_terminate_all(). > dma_unmap_sg() should alway

[PATCH 2/2] mmc: mmci: simplify err check in mmci_post_request

2011-08-29 Thread Per Forlin
The error condition indicates that mmci_post_request() should cleanup after the mmci_pre_request(). In this case the resources allocated by device_prep_slave_sg() are freed by calling dmaengine_terminate_all(). dma_unmap_sg() should always be performed if the host_cookie is set. Signed-off-by: Per