From patchwork Wed Mar 21 12:08:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10299317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4BF6600F6 for ; Wed, 21 Mar 2018 12:11:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1B4C2983B for ; Wed, 21 Mar 2018 12:11:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5C392983D; Wed, 21 Mar 2018 12:11:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29F772983C for ; Wed, 21 Mar 2018 12:11:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gGxea7Rb+FXrxk0PpdABjlpTNloJGrLzpOEWXVQrTPQ=; b=VF34sG3yLzJfynGjaj7j/ZkZdG YkNDTStXJ0pErlI6ngFd23yfQUgYwOxqkMrLoRTHugcJzixp5MX0FSAmO7i7PsUuEypIJFb855K9e P/4pErMYc8b8oCLTLd5GN0+22Z2padjvTligfvRH+EZmxgZcJIE9emO9Bx6/VWCv+vk4V1dtVuoMs pc2AXJYU3Tbc6eUuMTZRaXDg+ErtX8+xXUtElI/URH8DM9Z7gMYGpgBjmYw5nLLsaCp/ubY/fSC9j JBl/jQ51rB3fFWDLO5R+IiYK3uBgbzVTAJprId8cAkiT2RKIut9KG6u6qG35/BkXkZAmGGBH35YvJ fyc7gshw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1eycat-0006sd-I5; Wed, 21 Mar 2018 12:11:51 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1eycXv-00040g-8Q for linux-arm-kernel@lists.infradead.org; Wed, 21 Mar 2018 12:08:52 +0000 Received: by mail-wr0-x243.google.com with SMTP id f14so4934635wre.8 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=qdUck4Lp+4CmMScIBGyrksSGp16I+gBjBLChz2s90jXnfeK0bDQetgUSuCxR414gNe aRmHDlnkva8ouyBaqFcTqt76Nu3gasMgLsD4q9jcVNO5zgUibJYPKwra74DH7ua47GK/ DvJwAtWXkJGOCeC8+adOSmrciSPxeZYNDtM6l/60wm41J72WRdA2/EA9s9Ap6J1teJ1+ iPzlzGDDxY77jx1j99fkvLMp56o+ah229fjmYF/HMElSbnYwX/1kwyXvz3sEr+9uARS1 GdXxU0f27QT1lf5mSy7f4M3LsYK7heQIX9iMA/teDJeR+Te/YnhRGrTPZfFiT0bo5szn GZnw== X-Gm-Message-State: AElRT7ETK1w5th6tledd08kP4ePO13pdeZo+txRWPicXwqaRxfEAmnP9 OLaYr9y5fLezEQw7iTxyvX9V5A== X-Google-Smtp-Source: AG47ELtH8s8pBsuVOrRQbhj1Bd01g2CktdHBkJfv+DudDvFSaDN5urtda1sKqasAaiH4Uu1UMZpZMg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180321_050847_979169_3DEB8B86 X-CRM114-Status: GOOD ( 16.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }