Re: [PATCH] dmaengine: qcom_bam_dma: add one more optional clock

From: Stanimir Varbanov
Date: Tue Jan 06 2015 - 10:19:31 EST


Hi Andy,

On 09/07/2014 08:55 PM, Stanimir Varbanov wrote:
> The BAM is tightly coupled with the peripheral to which it
> belongs. In that sprit to access the BAM configuration
> registers the driver needs to enable some peripheral
> clocks. Currently the DT node enables bamclk which seems
> is not enough for some peripherals (for example the crypto
> engine wants core and iface clocks). This change attempts
> to solve this issue by adding one more optional clock
> in bam_dma driver.
>

What is your opinion on this patch?

> Signed-off-by: Stanimir Varbanov <svarbanov@xxxxxxxxxx>
> ---
> .../devicetree/bindings/dma/qcom_bam_dma.txt | 12 ++++--
> drivers/dma/qcom_bam_dma.c | 44 +++++++++++++++-------
> 2 files changed, 38 insertions(+), 18 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt b/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt
> index d75a9d7..2376897 100644
> --- a/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt
> +++ b/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt
> @@ -6,8 +6,11 @@ Required properties:
> - interrupts: Should contain the one interrupt shared by all channels
> - #dma-cells: must be <1>, the cell in the dmas property of the client device
> represents the channel number
> -- clocks: required clock
> -- clock-names: must contain "bam_clk" entry
> +- clocks: list of required clock plus one optional clock. The optional clock
> + is needed for some peripherals and can be omitted.
> +- clock-names: must contain "core" clock name representing the required clock
> + plus the optional "iface" clock name depending on
> + peripheral needs.
> - qcom,ee : indicates the active Execution Environment identifier (0-7) used in
> the secure world.
>
> @@ -17,8 +20,9 @@ Example:
> compatible = "qcom,bam-v1.4.0";
> reg = <0xf9984000 0x15000>;
> interrupts = <0 94 0>;
> - clocks = <&gcc GCC_BAM_DMA_AHB_CLK>;
> - clock-names = "bam_clk";
> + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
> + <&gcc GCC_BLSP1_AHB_CLK>;
> + clock-names = "core", "iface";
> #dma-cells = <1>;
> qcom,ee = <0>;
> };



--
regards,
Stan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/