From patchwork Mon May 4 04:28:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 6323251 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E07E19F374 for ; Mon, 4 May 2015 06:07:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09B1A202EC for ; Mon, 4 May 2015 06:07:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3620A202EB for ; Mon, 4 May 2015 06:07:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750919AbbEDGHa (ORCPT ); Mon, 4 May 2015 02:07:30 -0400 Received: from mail-bn1bon0053.outbound.protection.outlook.com ([157.56.111.53]:37042 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751252AbbEDGHa (ORCPT ); Mon, 4 May 2015 02:07:30 -0400 X-Greylist: delayed 3593 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 May 2015 02:07:29 EDT Received: from BN3PR0301CA0041.namprd03.prod.outlook.com (25.160.180.179) by BY1PR0301MB0837.namprd03.prod.outlook.com (25.160.193.143) with Microsoft SMTP Server (TLS) id 15.1.154.19; Mon, 4 May 2015 04:34:20 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::129) by BN3PR0301CA0041.outlook.office365.com (2a01:111:e400:4000::51) with Microsoft SMTP Server (TLS) id 15.1.154.19 via Frontend Transport; Mon, 4 May 2015 04:34:19 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; intel.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (TLS) id 15.1.160.8 via Frontend Transport; Mon, 4 May 2015 04:34:18 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.140) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Sun, 3 May 2015 21:33:23 -0700 Authentication-Results: intel.com; dkim=none (message not signed) header.d=none; Received: from linux-builds1.altera.com (64.129.157.38) by BN3PR03MB1367.namprd03.prod.outlook.com (25.163.34.153) with Microsoft SMTP Server (TLS) id 15.1.154.19; Mon, 4 May 2015 04:34:13 +0000 From: To: CC: , , , , Dinh Nguyen Subject: [PATCH] dmaengine: pl300: enable the clock to PL330 dma Date: Sun, 3 May 2015 23:28:54 -0500 Message-ID: <1430713734-12175-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.2.1 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY1PR0501CA0003.namprd05.prod.outlook.com (25.162.139.13) To BN3PR03MB1367.namprd03.prod.outlook.com (25.163.34.153) X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1367; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB0837; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN3PR03MB1367; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1367; BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY1PR0301MB0837; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB0837; X-Forefront-PRVS: 05669A7924 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(2351001)(66066001)(87976001)(47776003)(229853001)(62966003)(19580405001)(86362001)(53416004)(42186005)(50226001)(86152002)(77156002)(92566002)(48376002)(5001960100002)(19580395003)(107886002)(110136002)(50986999)(33646002)(122386002)(40100003)(46102003)(50466002)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1367; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1367 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD014.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(339900001)(199003)(189002)(16796002)(92566002)(19580395003)(85426001)(66066001)(87936001)(106466001)(47776003)(110136002)(5001960100002)(229853001)(86152002)(122386002)(6806004)(53416004)(46102003)(2351001)(107886002)(5001830100001)(33646002)(62966003)(77156002)(48376002)(81156007)(86362001)(19580405001)(50986999)(40100003)(50466002)(50226001)(105606002)(4001540100001)(7099028)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB0837; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; MLV:ovrnspm; A:0; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Forefront-PRVS: 05669A7924 X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2015 04:34:18.5242 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0837 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen Turn on the clock to the PL330 DMA if there is a clock node provided. Signed-off-by: Dinh Nguyen --- drivers/dma/pl330.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 0e1f567..82eb641 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2894,6 +2894,10 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) adev->dev.dma_parms = &pl330->dma_parms; + adev->pclk = devm_clk_get(&adev->dev, "apb_pclk"); + if (adev->pclk) + clk_prepare_enable(adev->pclk); + /* * This is the limit for transfers with a buswidth of 1, larger * buswidths will have larger limits.