dmaengine: axi-dmac: move version read in probe
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 25 Aug 2020 15:19:45 +0000 (18:19 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Aug 2020 15:37:10 +0000 (21:07 +0530)
commitb377e670bac558a570f83a63c9ffb7cc79887d9b
tree18f94342c50a22aeefe0b7b41c5e8fb761af1348
parent112ec61b212200d378963cbafdd736a62e9ddaec
dmaengine: axi-dmac: move version read in probe

The 'version' of the IP core will be needed to adapt the driver to a new
feature (i.e. reading some DMA parameters from registers).
To do that, the version will be checked, so this is being moved out of the
axi_dmac_detect_caps() function.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200825151950.57605-2-alexandru.ardelean@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c