dmaengine: qcom: bam_dma: get num-channels and num-ees from dt
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 15 Feb 2018 12:25:09 +0000 (12:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:37 +0000 (07:52 +0200)
commit909474cd384cb206f33461fbd18089cf170533f8
tree526c231267b665eaa125f7b8a6abe8c5251d89b5
parent7efeaf6d5193ce2d45d736a47b431a2f6202ba05
dmaengine: qcom: bam_dma: get num-channels and num-ees from dt

[ Upstream commit 48d163b1aa6e7f650c0b7a4f9c61c387a6def868 ]

When Linux is master of BAM, it can directly read registers to know number
of supported channels, however when its remotely controlled reading these
registers would trigger a crash if the BAM is not yet initialized or
powered up on the remote side.

This patch allows driver to read num-channels and num-ees from Device Tree
for remotely controlled BAM.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/qcom/bam_dma.c