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)
commit69031f500865ee3eee19566a1b9c40a189817eaa
treec14936547a4f2e44f4b9ee89b415766a7975b364
parent6e675a1c455ea7579c7eaf1a38fe64267039d6fe
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