Commit ecc19d17 authored by Maxime Ripard's avatar Maxime Ripard Committed by Vinod Koul

dmaengine: Add a warning for drivers not using the generic slave caps retrieval

For the slave caps retrieval to be really useful, most drivers need to
implement it.

Hence, we need to be slightly more aggressive, and trigger a warning at
registration time for drivers that don't fill their caps infos in order to
encourage them to implement it.
Signed-off-by: default avatarMaxime Ripard <>
Acked-by: default avatarLaurent Pinchart <>
Signed-off-by: default avatarVinod Koul <>
parent 1cac81b4
......@@ -826,6 +826,9 @@ int dma_async_device_register(struct dma_device *device)
WARN(dma_has_cap(DMA_SLAVE, device->cap_mask) && !device->directions,
"this driver doesn't support generic slave capabilities reporting\n");
/* note: this only matters in the
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment