Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383630

Re: [PATCH 2/2] dmaengine: vdma: Add clock support

From Moritz Fischer <moritz.fischer@ettus.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] dmaengine: vdma: Add clock support
Date 2016-04-20 20:40 +0200
Message-ID <rq5cB-3L1-3@gated-at.bofh.it> (permalink)
References <rpUKe-3Yt-17@gated-at.bofh.it> <rpUKe-3Yt-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

thanks for looking into this.

On Wed, Apr 20, 2016 at 12:20 AM, Kedareswara rao Appana
<appana.durga.rao@xilinx.com> wrote:

> +static int xdma_clk_init(struct xilinx_dma_device *xdev, bool enable)
> +{
> +       int i = 0, ret;
> +
> +       for (i = 0; i < xdev->numclks; i++) {
> +               if (enable) {
> +                       ret = clk_prepare_enable(xdev->clks[i]);
> +                       if (ret) {
> +                               dev_err(xdev->dev,
> +                                       "failed to enable the axidma clock\n");
> +                               return ret;

What happens to the ones you already turned on, if say the third fails?

Cheers,

Moritz

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] dmaengine: vdma: Add clock support Kedareswara rao Appana <appana.durga.rao@xilinx.com> - 2016-04-20 09:30 +0200
  Re: [PATCH 2/2] dmaengine: vdma: Add clock support Moritz Fischer <moritz.fischer@ettus.com> - 2016-04-20 20:40 +0200
    RE: [PATCH 2/2] dmaengine: vdma: Add clock support Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com> - 2016-04-21 07:20 +0200

csiph-web