Received: by 10.213.65.68 with SMTP id h4csp447673imn; Fri, 30 Mar 2018 08:32:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Q/E0yQeqnKIRn/URS1Wh6jDoF7wkA7sm21wXxz1BbTX4mliI/v6+z9hEKkQEhQwiDATF5 X-Received: by 10.99.115.73 with SMTP id d9mr8955061pgn.354.1522423979559; Fri, 30 Mar 2018 08:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522423979; cv=none; d=google.com; s=arc-20160816; b=ikryHnFPTVs5XPhbyhCDdwxZsY5/Jsd/OPrMRVtflh08wEG65doirZkgU5PPxhVA7a nm8lQOn6UTly13+nDUEyo+WPeZadaYzIaorKxeuuDb3Yp9el8RhtbUNBGBp1S74ipXFE X3mYCRi0gfYL/hWrCPGwjraIvgvWvPBAQ2flqwd1uQ2tytookt0300bm/NeqeD4Dx96t EVosR5CXBEr9IlTPfghi3bNljYDqhFbaQY26qAOxQZh1Nzf9Ti5j3RpcIdDC4X4AaHlc H6jBWrpt0VKXZNRI79ST0GCtV44oVDHxnykFBLODrjPxZDd7Yjt6yjCkB5oosZniddCG LuvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=MtOMzSr3r3e97ftAS0n9qBCzVj/Pbr6bpYWHVGqUXBY=; b=BjfqJyzcp/VRMcXMg2BPpNLKdEI5EjJRtHpt5s7CijDiMgj4C/IsM8AGS53hfYnMQO 2wQI9lDtpNQ0G5mPWiVMfU3UyXe1F81XZ2N25yF53NUXrDDCOb+nJ7KqnUzdAW/bLj7Z ZK0PaUL6g2TdC+GZGnoVFUZWLGQW2dprMToyUeMXdCFMRqACeQl+6ny7PkS0Syp9f2Db m1opB9MzX0zc6l3LWXioOIm7ys+8/p6RinYz96lWY7T8p70xonDn3YM5c2uxaFwaOGxh DDv26HZ+EE3nFyaEbSYjLBzF/i9lNbXCqlPCKSvJKKsaKXg726D0hai/Ke8QYsE/af8n tvBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xzR1a0AT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9-v6si8743702plj.551.2018.03.30.08.32.46; Fri, 30 Mar 2018 08:32:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xzR1a0AT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbeC3PaM (ORCPT + 99 others); Fri, 30 Mar 2018 11:30:12 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:56117 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbeC3P3I (ORCPT ); Fri, 30 Mar 2018 11:29:08 -0400 Received: by mail-wm0-f66.google.com with SMTP id b127so15318674wmf.5 for ; Fri, 30 Mar 2018 08:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MtOMzSr3r3e97ftAS0n9qBCzVj/Pbr6bpYWHVGqUXBY=; b=xzR1a0ATxbI5gpuwM8ovFb00w+VSAuey/88GRCPQmoSkzuCKCu0hYZF7uD2KWPhM52 YxOigRkK+e8GY/1CcjKTE9OifRetsHNNgJR6wmM5jOoMVORlEcJWyt+QJnabV5wMX+kz 2/a+ijuZEDRbmtW3myfM5M8uFm87O6HL9pE5oGV4SW3EWV82jBwH//1V2WqbBnqWecRV wDLSeDqUBN3qQkPBYoUoboZmeTKmfJ9paEB0DcnKgCRiLmNixlyXODR4QiNYwycNA/t5 h/DRO4KlID6Ac4jIFdfE+zy4E4lWR2nWQHWmXN1N+9VcE0DMWd1pkOL21NLeP3XLjzRI QN7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MtOMzSr3r3e97ftAS0n9qBCzVj/Pbr6bpYWHVGqUXBY=; b=DnBV01u8sc0HKldmFsksQ7SneANi2Z/j9zwKMtiCkRIDDz0gaEC/+XlE91gYPnHr1I dvrax2mNQmzDF5cNNfxjk41AYQZxwqUPIYuXwJungADINpapLpSTh5a+8MPWj2InribQ grPHaLzArXpZd/EFh+/78nICci1Qjxi6CIQqU7ZlyfhaQ1m2/q4gnb3VdkkLuc9ziWIl ETqF+W5zdRYsKCwQL6rUrL/lMmN6J26g7Yyp2NOeSCik8rLknJcXQtbZ7x/k6jvaRLab 7JaHLCfe6cRi24xX0BHr1/UASHgW0LZIbF9OtEBG/aTkicz0kKOc7UnvcfysXaUCA2oB 9IHg== X-Gm-Message-State: AElRT7GJ3XI3Un2g7EjtRtLK/0l/Esxn1UKaX04znxW3MyVcCu5R8TCt 4BF+rCY0kI7PtKX0zk7FsSaJdQ== X-Received: by 10.28.148.201 with SMTP id w192mr2610978wmd.112.1522423746964; Fri, 30 Mar 2018 08:29:06 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n49sm14429881wrn.90.2018.03.30.08.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 08:29:06 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , David Lechner , Michael Turquette , Stephen Boyd , Ohad Ben-Cohen , Bjorn Andersson , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-remoteproc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 5/8] remoteproc/davinci: prepare and unprepare the clock where needed Date: Fri, 30 Mar 2018 17:28:53 +0200 Message-Id: <20180330152856.12297-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180330152856.12297-1-brgl@bgdev.pl> References: <20180330152856.12297-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski We're currently switching the platform to using the common clock framework. We need to explicitly prepare and unprepare the rproc clock. Signed-off-by: Bartosz Golaszewski Acked-by: Suman Anna --- drivers/remoteproc/da8xx_remoteproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c index 2b24291337b7..f134192922e0 100644 --- a/drivers/remoteproc/da8xx_remoteproc.c +++ b/drivers/remoteproc/da8xx_remoteproc.c @@ -149,9 +149,9 @@ static int da8xx_rproc_start(struct rproc *rproc) writel(rproc->bootaddr, drproc->bootreg); - ret = clk_enable(dsp_clk); + ret = clk_prepare_enable(dsp_clk); if (ret) { - dev_err(dev, "clk_enable() failed: %d\n", ret); + dev_err(dev, "clk_prepare_enable() failed: %d\n", ret); return ret; } @@ -165,7 +165,7 @@ static int da8xx_rproc_stop(struct rproc *rproc) struct da8xx_rproc *drproc = rproc->priv; davinci_clk_reset_assert(drproc->dsp_clk); - clk_disable(drproc->dsp_clk); + clk_disable_unprepare(drproc->dsp_clk); return 0; } -- 2.16.3