Home
last modified time | relevance | path

Searched hist:"37 fa4905" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/dma/qcom/
H A Dhidma_mgmt.c37fa4905 Thu Jan 04 16:45:40 CST 2018 Rob Herring <robh@kernel.org> dmaengine: qcom_hidma: simplify DT resource parsing

The hidma driver open codes populating address and IRQ resources from DT.
We have standard functions of_address_to_resource and of_irq_to_resource
for this, so use them instead.

The DT binding states each child should have 2 addresses and 1 IRQ, so we
can simplify the logic and do a fixed size resource allocation. Using the
standard of_address_to_resource will also do any address translation which
was missing.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
37fa4905 Thu Jan 04 16:45:40 CST 2018 Rob Herring <robh@kernel.org> dmaengine: qcom_hidma: simplify DT resource parsing

The hidma driver open codes populating address and IRQ resources from DT.
We have standard functions of_address_to_resource and of_irq_to_resource
for this, so use them instead.

The DT binding states each child should have 2 addresses and 1 IRQ, so we
can simplify the logic and do a fixed size resource allocation. Using the
standard of_address_to_resource will also do any address translation which
was missing.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>