Commit b3793690 authored by Will Deacon's avatar Will Deacon Committed by Will Deacon
Browse files

FROMLIST: of: Return success from of_dma_set_restricted_buffer() when !OF_ADDRESS



When CONFIG_OF_ADDRESS=n, of_dma_set_restricted_buffer() returns -ENODEV
and breaks the boot for sparc[64] machines. Return 0 instead, since the
function is essentially a glorified NOP in this configuration.

Cc: Claire Chang <tientzu@chromium.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Suggested-by: default avatarRobin Murphy <robin.murphy@arm.com>
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Tested-by: default avatarClaire Chang <tientzu@chromium.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210702030807.GA2685166@roeck-us.net


Fixes: fec9b625 ("of: Add plumbing for restricted DMA pool")
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210720133826.9075-2-will@kernel.org


Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 190591509
Change-Id: Id257a77ba98a6b6b4135cb98cabb2f3502061f38
parent 425dab97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment