Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbcDTSjH (ORCPT ); Wed, 20 Apr 2016 14:39:07 -0400 Received: from mail-vk0-f51.google.com ([209.85.213.51]:32815 "EHLO mail-vk0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbcDTSjE (ORCPT ); Wed, 20 Apr 2016 14:39:04 -0400 MIME-Version: 1.0 In-Reply-To: <1461136800-20334-2-git-send-email-appanad@xilinx.com> References: <1461136800-20334-1-git-send-email-appanad@xilinx.com> <1461136800-20334-2-git-send-email-appanad@xilinx.com> Date: Wed, 20 Apr 2016 11:39:02 -0700 Message-ID: Subject: Re: [PATCH 2/2] dmaengine: vdma: Add clock support From: Moritz Fischer To: Kedareswara rao Appana Cc: Rob Herring , "pawel.moll@arm.com" , Mark Rutland , Ian Campbell , Kumar Gala , Michal Simek , =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , Vinod Koul , Dan Williams , Appana Durga Kedareswara Rao , Laurent Pinchart , Luis de Bethencourt , Anirudha Sarangi , Punnaiah Choudary Kalluri , Devicetree List , linux-arm-kernel , Linux Kernel Mailing List , dmaengine@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 694 Lines: 24 Hi, thanks for looking into this. On Wed, Apr 20, 2016 at 12:20 AM, Kedareswara rao Appana 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