aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2021-08-16 14:26:17 +0100
committerKonrad Rzeszutek Wilk <[email protected]>2021-08-23 06:32:04 -0400
commitf3cfd136aef0184919464b49d5b74d43605abcbc (patch)
treeae36fc12ee82720324fd473c292aea4d5ddbce4a /drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
parentce5cb67c664fbc93d1af20b3fbd7a07eda9f6ee6 (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 'drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c')
0 files changed, 0 insertions, 0 deletions