]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:50:48 +0000 (07:50 +0200)
commitcecf8a69042b3a54cb843223756c10ee8a8665e3
tree8a99f645c2c0bea61d77b14ea0067de62e2a956f
parent086a52f1db8847dc0ab4acc5c9af3dd9cc4cf4e8
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