diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2020-10-30 14:11:16 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-30 12:56:14 +0000 |
commit | 23fc86eb2f30fc975e5705bb1a2cf92956d2edd7 (patch) | |
tree | d3a8246bf074b4dc90400c89c6919c218ce5ecf1 /drivers/spi/spi-img-spfi.c | |
parent | ce2424d76f23be93ff745e3101630ce63224bb86 (diff) |
spi: atmel: Downgrade to dev_dbg when dma_request_chan() fails
The IP's DMA capabilities are described in the SoC dtsi, to spare
users duplicating the DMA bindings in their board device tree. Users
that don't want to use DMA, have to overwrite the DMA bindings in
their board device tree. An example is:
commit ddcdaeb88242 ("ARM: dts: at91: sama5d2: Add DMA bindings for the SPI and UART flx4 functions")
When the DMA bindings are overwritten, one could see on the console:
atmel_spi fc018400.spi: error -ENODEV: No TX DMA channel, DMA is disabled
atmel_spi fc018400.spi: Atmel SPI Controller using PIO only
Choosing to not use DMA is not a reason to print an error message.
More, the user is already informed when PIO is used: "Atmel SPI Controller
using PIO only". Downgrade to dev_dbg when dma_request_chan() fails.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201030121116.869105-1-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-img-spfi.c')
0 files changed, 0 insertions, 0 deletions