Received: by 10.213.65.68 with SMTP id h4csp1195262imn; Wed, 21 Mar 2018 05:11:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELv8KxGDpaLP516PMqMY88moacp7/CcxHtgvh+REkqE0CIANRB9eGVFS/hTvGmbmJPtnLjQZ X-Received: by 2002:a17:902:6884:: with SMTP id i4-v6mr20970228plk.259.1521634264950; Wed, 21 Mar 2018 05:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521634264; cv=none; d=google.com; s=arc-20160816; b=k5xrEUKRve7S9Z0+2h3+2g5OvrOas7jCKbal+T+DjzePp6NtxOYJWsHA2jf/O5jJ7/ 41J1YVV3qjADMyJkUbYhl/D6zXk0CDv+dK2pH99jDcvZKiUOzCDun0cH25+RsZrzyJ7x mvDffJW06rPXO6hFF+nx1Yno06X8mER9dlBkJVecHcFXXo0u1mjeNLmzzObFN9DQIo5O NP6zsZXHGcXUWCq2kcb015Tx79JJJT1TEKKbQZF19tOIM46io0Eco6QEJ8yopKycT3Nb PirfGM651j5N81rLJg8u0qmYDz+Zmk1HfhTsb0/06QWpZ5C3ku9SHhWlrzpRqxhNtjO0 0Chg== 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=nm5gn+/x/GyCsawwXgXH0ICGIoy1z/tC752IYoNseG0=; b=peds+6wVjEWBOWTHeV0Dt6HF6uFm+U5m7MD4IX2OFELwz0D2aQe3ta3LPXvF72S99+ +fy1tzCYpvg8QZmSwVF294PFbKb5logK4lMdFCHzFnydB+ecDbO628oVLQ7wnu9u2MSv 2YdLtWuzVoPZN5rhZILJwXkWGHL4r11B4vt2SYgrj99Mt6iNSCyGJMCv9tul0zAHI9O1 +I61RMlUXOOaaIFlmbzuCo4ar+OmWu9ZtdyZ/UiqeTiILUgdl4/nt6xmyfxsBkJG4eGd n8WOK/RwA155BPjgQpOmDVtrW3s/wniRvRaMaysvP7LU+Jvricbg786u0DcJTudzIQDz qhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=XFHDRnhQ; 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 z13si2633420pgu.804.2018.03.21.05.10.50; Wed, 21 Mar 2018 05:11:04 -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=XFHDRnhQ; 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 S1751811AbeCUMJY (ORCPT + 99 others); Wed, 21 Mar 2018 08:09:24 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:47097 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbeCUMIg (ORCPT ); Wed, 21 Mar 2018 08:08:36 -0400 Received: by mail-wr0-f196.google.com with SMTP id s10so4924428wra.13 for ; Wed, 21 Mar 2018 05:08:36 -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=nm5gn+/x/GyCsawwXgXH0ICGIoy1z/tC752IYoNseG0=; b=XFHDRnhQqXbeKFuER3DFZA0IKB6Fr2FZfZ6WqL8mM7kWOm9YX4RMkhm3CPLragyMQ+ rNOlDHvPEsvEDbxY1ppFFDokfMS90tFOOoyksYVpEwLiuQq99M4k3ftfGXwp7cwg5mJD p4rK37zsN/i2eTJk308wzBZwoIcqpGOtbXQOncLMxyINZjZs8sU/+IcgXGjW1+y5VD+c nVx8I/rL0o+8cvF1ZuOUzL33CMdrRHkSUzbipaGtfRMRI2yHROFZUjvm33RnuvFaneIg 7ZkrwKZr3NdArLoqFl0T8mYafQPzVeTH0IVyL5vZj4pIqAM/O8UudZbF9Wg2PSXL4O+W 12EA== 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=nm5gn+/x/GyCsawwXgXH0ICGIoy1z/tC752IYoNseG0=; b=k/CNvCYUBuSDJpF4uaF+rwY/u4asjYF/13nf6wxHKUkjuXFQ9Deo/SHmM90wNVrVVE yI0jqntMJ38/pbWC/UbTR2FK/SfbsF6zLC/RvVL254AqWLKGKVzOXOKkX35kCrWkh04m lBRjhrXxX8M7RBdViu1UQjN7S7UnmxiF713srV0RHsOljRhRYQuJPX2lJ7SLVcvDvQrn XY/shd+bgr0f5VjPbB8McXjIUfbfbWmzylKfSiHhJx7SqPe5FvShcCPp2fdeU/sdD/bO dVsmzDR+NTwTvqVF2ttanquDD16zwkBjev7wuFB4EdWuJnxTb0s0iBoyodARGbM62njg yYmA== X-Gm-Message-State: AElRT7HVSYIDFVJvDnlyHQpdozJNcbmhVzGJAipr5MInPXYl+L3Z8VC6 f8xFybGFIlP/PXFtkhNXhBMh8g== X-Received: by 10.223.182.143 with SMTP id j15mr9966730wre.43.1521634115501; Wed, 21 Mar 2018 05:08:35 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-NIC-1-208-99.w2-15.abo.wanadoo.fr. [2.15.55.99]) by smtp.gmail.com with ESMTPSA id 69sm3871018wmp.36.2018.03.21.05.08.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 05:08:34 -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 6/8] remoteproc: da8xx: prepare and unprepare the clock where needed Date: Wed, 21 Mar 2018 13:08:05 +0100 Message-Id: <20180321120807.18032-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180321120807.18032-1-brgl@bgdev.pl> References: <20180321120807.18032-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 --- 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 592bf0fc52e8..83f2d66ad3a9 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); - rv = clk_enable(dsp_clk); + rv = clk_prepare_enable(dsp_clk); if (rv) { - dev_err(dev, "clk_enable() failed: %d\n", rv); + dev_err(dev, "clk_prepare_enable() failed: %d\n", rv); return rv; } @@ -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.1