of: Add plumbing for restricted DMA pool
authorClaire Chang <tientzu@chromium.org>
Sat, 19 Jun 2021 03:40:43 +0000 (11:40 +0800)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 14 Jul 2021 00:04:53 +0000 (20:04 -0400)
commitfec9b625095f7308e52a6922619cd4abaa9534a8
treebc5495ba83cb96359a1b802e33d317127d7bb3b9
parentb12fe999545cf3fd89e1a178ee4e541a9331da82
of: Add plumbing for restricted DMA pool

If a device is not behind an IOMMU, we look up the device node and set
up the restricted DMA when the restricted-dma-pool is presented.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/of/address.c
drivers/of/device.c
drivers/of/of_private.h