This is useful information to have in debugging, especially as dma-ranges inheritance can be hard to follow, so add it to the devinfo command output.
Signed-off-by: Ahmad Fatoum <[email protected]> --- commands/devinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/devinfo.c b/commands/devinfo.c index c87b30e84307..b80dce005e9c 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -104,6 +104,12 @@ static int do_devinfo(int argc, char *argv[]) if (dev->of_node) { struct device *main_dev = dev->of_node->dev; + if (dev->dma_offset) + printf("DMA offset: 0x%lx\n", dev->dma_offset); + + if (dev->dma_mask) + printf("DMA mask: 0x%llx\n", dev->dma_mask); + printf("DMA Coherent: %s%s\n", dev_is_dma_coherent(dev) ? "true" : "false", dev->dma_coherent == DEV_DMA_COHERENCE_DEFAULT ? " (default)" : ""); -- 2.47.3
