]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit71840e44337b26ad325df404422dde838c7de128
tree0fbd9848b0b50b08fa0b34c6b4adbb8c1329e8f9
parent899c925b454c4689dd843bc3718102d6f053540f
dmaengine: qcom: bam_dma: get num-channels and num-ees from dt

BugLink: http://bugs.launchpad.net/bugs/1786352
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/dma/qcom/bam_dma.c