From: Dongli Zhang Date: Mon, 1 Apr 2019 06:20:58 +0000 (+0800) Subject: swiotlb: fix comment on swiotlb_bounce() X-Git-Tag: v4.1.12-124.31.3~210 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6efeeb26ed0272733bb89df3d8d7741d47fefadc;p=users%2Fjedix%2Flinux-maple.git swiotlb: fix comment on swiotlb_bounce() Fix the comment as swiotlb_bounce() is used to copy from original dma location to swiotlb buffer during swiotlb_tbl_map_single(), while to copy from swiotlb buffer to original dma location during swiotlb_tbl_unmap_single(). Signed-off-by: Dongli Zhang Signed-off-by: Konrad Rzeszutek Wilk Orabug: 29582587 (cherry picked from commit 6442ca2abf882d9d838fb844d852ba6acd1db7f4) Signed-off-by: Dongli Zhang Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Brian Maly --- diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 3c365ab6cf5f..6210202148a5 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -383,7 +383,7 @@ int is_swiotlb_buffer(phys_addr_t paddr) } /* - * Bounce: copy the swiotlb buffer back to the original dma location + * Bounce: copy the swiotlb buffer from or back to the original dma location */ static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, size_t size, enum dma_data_direction dir)