diff options
author | Will Deacon <[email protected]> | 2021-08-16 14:26:17 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <[email protected]> | 2021-08-23 06:32:04 -0400 |
commit | f3cfd136aef0184919464b49d5b74d43605abcbc (patch) | |
tree | ae36fc12ee82720324fd473c292aea4d5ddbce4a /fs/xfs/libxfs/xfs_alloc.h | |
parent | ce5cb67c664fbc93d1af20b3fbd7a07eda9f6ee6 (diff) |
of: restricted dma: Don't fail device probe on rmem init failure
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
Rework of_dma_set_restricted_buffer() so that it does not cause probing
failure and instead either returns early if CONFIG_DMA_RESTRICTED_POOL=n
or emits a diagnostic if the reserved DMA pool fails to initialise.
Cc: Claire Chang <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Robin Murphy <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.h')
0 files changed, 0 insertions, 0 deletions