Re: [PATCH] of: restricted dma: Don't fail device probe on rmem init failure
From: Will Deacon <will@kernel.org>
Date: 2021-08-06 11:37:41
Also in:
kvmarm, linux-arm-kernel
From: Will Deacon <will@kernel.org>
Date: 2021-08-06 11:37:41
Also in:
kvmarm, linux-arm-kernel
On Fri, Aug 06, 2021 at 12:31:05PM +0100, Will Deacon wrote:
If CONFIG_DMA_RESTRICTED_POOL=n then probing a device with a reference to a "restricted-dma-pool" will fail with a reasonably cryptic error: | pci-host-generic: probe of 10000.pci failed with error -22 Print a more helpful message in this case and try to continue probing the device as we do if the kernel doesn't have the restricted DMA patches applied or either CONFIG_OF_ADDRESS or CONFIG_HAS_DMA =n. Cc: Claire Chang <redacted> Cc: Konrad Rzeszutek Wilk <redacted> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Rob Herring <robh+dt@kernel.org> Signed-off-by: Will Deacon <will@kernel.org> --- drivers/of/address.c | 8 ++++---- drivers/of/device.c | 2 +- drivers/of/of_private.h | 8 +++----- 3 files changed, 8 insertions(+), 10 deletions(-)
Sorry, didn't mean to send this patch a second time, it was still kicking around in my tree from yesterday and I accidentally picked it up when sending my TLBI series. Please ignore. Will