]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Set dev->dma_io_tlb_mem to the swiotlb pool used
authorClaire Chang <tientzu@chromium.org>
Sat, 19 Jun 2021 03:40:34 +0000 (11:40 +0800)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 14 Jul 2021 00:04:37 +0000 (20:04 -0400)
commite438069be26356ae75b71dfa973d37dc3f431408
treec14936547a4f2e44f4b9ee89b415766a7975b364
parent780867382af674616ef2dea525bc6b60170183db
swiotlb: Set dev->dma_io_tlb_mem to the swiotlb pool used

Always have the pointer to the swiotlb pool used in struct device. This
could help simplify the code for other pools.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/base/core.c
include/linux/device.h
kernel/dma/swiotlb.c