lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <83310901-622b-c548-b7ea-e9d20f8b1903@linaro.org>
Date:   Wed, 7 Sep 2016 16:48:59 +0300
From:   Stanimir Varbanov <stanimir.varbanov@...aro.org>
To:     Iaroslav Gridin <voker57@...il.com>, vinod.koul@...el.com
Cc:     dan.j.williams@...el.com, andy.gross@...aro.org,
        stanimir.varbanov@...aro.org, pramod.gurav@...aro.org,
        arnd@...db.de, okaya@...eaurora.org, dmaengine@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
        Stephen Boyd <sboyd@...eaurora.org>
Subject: Re: [PATCH] dma: qcom: Add initialization of axi and core clocks

Hi Iaroslav,

Could you Cc linux-arm-msm ML next time.

Cc: Stephen and linux-arm-msm

Andy, Stephen probably we don't have conclusion about adding those two
clocks in bam driver but do you have some better ideas?

On 08/30/2016 06:42 PM, Iaroslav Gridin wrote:
> From: Voker57 <voker57@...il.com>
> 
> These initialization are missing and causing bam not to init
> Signed-off-by: Iaroslav Gridin <voker57@...il.com>
> ---
>  drivers/dma/qcom/bam_dma.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c
> index 03c4eb3..faae0c8 100644
> --- a/drivers/dma/qcom/bam_dma.c
> +++ b/drivers/dma/qcom/bam_dma.c
> @@ -395,6 +395,8 @@ struct bam_device {
>  	const struct reg_offset_data *layout;
>  
>  	struct clk *bamclk;
> +	struct clk *axi_clk;
> +	struct clk *core_clk;
>  	int irq;
>  
>  	/* dma start transaction tasklet */
> @@ -1189,6 +1191,25 @@ static int bam_dma_probe(struct platform_device *pdev)
>  		return ret;
>  	}
>  
> +	bdev->axi_clk = devm_clk_get(bdev->dev, "axi_clk");
> +	if (IS_ERR(bdev->axi_clk))
> +		bdev->axi_clk = NULL;
> +
> +	ret = clk_prepare_enable(bdev->axi_clk);
> +	if (ret) {
> +		dev_err(bdev->dev, "failed to prepare/enable axi clock\n");
> +		return ret;
> +	}
> +
> +	bdev->core_clk = devm_clk_get(bdev->dev, "core_clk");
> +	if (IS_ERR(bdev->core_clk))
> +		bdev->core_clk = NULL;
> +
> +	ret = clk_prepare_enable(bdev->core_clk);
> +	if (ret) {
> +		dev_err(bdev->dev, "failed to prepare/enable core clock\n");
> +		return ret;
> +	}
>  	ret = bam_init(bdev);
>  	if (ret)
>  		goto err_disable_clk;
> 

regards,
Stan
-- 
regards,
Stan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ