Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbcDUFSA (ORCPT ); Thu, 21 Apr 2016 01:18:00 -0400 Received: from mail-cys01nam02on0057.outbound.protection.outlook.com ([104.47.37.57]:3864 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751282AbcDUFR6 (ORCPT ); Thu, 21 Apr 2016 01:17:58 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; From: Appana Durga Kedareswara Rao To: Moritz Fischer CC: Rob Herring , "pawel.moll@arm.com" , Mark Rutland , Ian Campbell , Kumar Gala , "Michal Simek" , Soren Brinkmann , Vinod Koul , Dan Williams , "Laurent Pinchart" , Luis de Bethencourt , Anirudha Sarangi , "Punnaiah Choudary Kalluri" , Devicetree List , linux-arm-kernel , Linux Kernel Mailing List , "dmaengine@vger.kernel.org" Subject: RE: [PATCH 2/2] dmaengine: vdma: Add clock support Thread-Topic: [PATCH 2/2] dmaengine: vdma: Add clock support Thread-Index: AQHRmtUcN9h3PioJa06WRGCFfam4cJ+SrAoAgAE4WtA= Date: Thu, 21 Apr 2016 05:17:50 +0000 Message-ID: References: <1461136800-20334-1-git-send-email-appanad@xilinx.com> <1461136800-20334-2-git-send-email-appanad@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.95.210] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22272.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(51914003)(13464003)(199003)(189002)(377454003)(47776003)(5004730100002)(1220700001)(11100500001)(2920100001)(189998001)(5003600100002)(106116001)(2906002)(23676002)(6116002)(2950100001)(1096002)(5890100001)(102836003)(19580395003)(3846002)(2900100001)(19580405001)(586003)(5250100002)(81166005)(110136002)(92566002)(50466002)(87936001)(5008740100001)(54356999)(63266004)(55846006)(76176999)(6806005)(86362001)(50986999)(33656002)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1NAM02HT241;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-MS-Office365-Filtering-Correlation-Id: f9e60a26-0436-4c64-b1c2-08d369a44b16 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:CY1NAM02HT241; X-Microsoft-Antispam-PRVS: <03632810502945b5b58d85eff53677e7@CY1NAM02HT241.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521045)(601004)(2401047)(5005006)(13018025)(13024025)(13023025)(13015025)(8121501046)(13017025)(10201501046)(3002001);SRVR:CY1NAM02HT241;BCL:0;PCL:0;RULEID:;SRVR:CY1NAM02HT241; X-Forefront-PRVS: 091949432C X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2016 05:17:53.6879 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1NAM02HT241 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u3L5I7CV006855 Content-Length: 2238 Lines: 55 Hi Moritz, Thanks for the review... > -----Original Message----- > From: Moritz Fischer [mailto:moritz.fischer@ettus.com] > Sent: Thursday, April 21, 2016 12:09 AM > To: Appana Durga Kedareswara Rao > Cc: Rob Herring ; pawel.moll@arm.com; Mark Rutland > ; Ian Campbell ; > Kumar Gala ; Michal Simek ; > Soren Brinkmann ; Vinod Koul ; > Dan Williams ; Appana Durga Kedareswara Rao > ; Laurent Pinchart > ; Luis de Bethencourt > ; Anirudha Sarangi ; Punnaiah > Choudary Kalluri ; Devicetree List > ; linux-arm-kernel kernel@lists.infradead.org>; Linux Kernel Mailing List kernel@vger.kernel.org>; dmaengine@vger.kernel.org > Subject: Re: [PATCH 2/2] dmaengine: vdma: Add clock support > > 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? Will fix in the next version of the patch... Regards, Kedar. > > Cheers, > > Moritz This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.