From patchwork Tue Aug 23 06:26:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 9295013 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 98CB460757 for ; Tue, 23 Aug 2016 06:22:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BFBA28B48 for ; Tue, 23 Aug 2016 06:22:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 809F928B71; Tue, 23 Aug 2016 06:22:21 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D75F828B48 for ; Tue, 23 Aug 2016 06:22:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc557-0007nh-0v; Tue, 23 Aug 2016 06:21:05 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc54i-00077j-4V for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2016 06:20:41 +0000 Received: by mail-lf0-x233.google.com with SMTP id f93so93528752lfi.2 for ; Mon, 22 Aug 2016 23:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5SthDmQ+A4GBgXWxrckWyR+Tppr8Qg5aSxXFtttxYV8=; b=yaOz5ARh1pAgtxbnzdSb3c1mDuLJVkrBsGlouw6Pmu2ur+4WKJ4z4DfpURjSKb09Zy TXSMgCbLdqqn0dC9cxlRKLbZz+TBF0PQcUll6sBRX50/70Y4xJCGOdIBKkXCjWloYM4x PBSgxBL2Np9LeP4OGtq+icU/6lNKSEe1mrOOO5JpXW0b60/N9Si0YlCtIfQ1NBNIdSRX U1N1k1Un0I//RDaQqzVFgUXQrYXHiDKPD/xfKPiLuMIjwlcK6Hgyi1bFDlvc0DKZEwCa 5qtWuPj2KqGt+7NjFvBCgI8RoYYuRix+LVKQsmIoZWm1YgRhGr0kLZCnElaCf6D5RVJP cC4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5SthDmQ+A4GBgXWxrckWyR+Tppr8Qg5aSxXFtttxYV8=; b=RUo7aQxiKcWIN/w72qqh+/W+vz5oO9idbQcudUHX0MPP45AzGESIkDLztAhq4TT0fS V6HCfjtG4LVqY/mIa8Z5ik0UWrsiC+XX5z3LkXljPqALqb+qVdPU20SLsZqjhHA9HGT7 8/5VPhxBRs7/kKIWmc5nDiNMnbgA1ipfM1pNx/Ja64oqoHR2a6sy4kl1xwOBjd4AcI2m SHRLJ/tuPWHe17b7a+4UX28/vsL/zykQ7lEwvra6phzckSXepoV2b7fLWOk6ykTRhVMc 3b3sipvQbjL2odL3NZPrDcuQ/hwUkPBk/xJYzDPV6Gux7ejdqT4CZDEe94y3g5PRxQin sSSw== X-Gm-Message-State: AEkoouvFc6htBUJBy6pg77ShzPOvputNo+nCopLS6ztHE0RV4Nhg4i11sqYVT6HjiY7XuQ== X-Received: by 10.25.144.75 with SMTP id s72mr6695454lfd.232.1471933217777; Mon, 22 Aug 2016 23:20:17 -0700 (PDT) Received: from enkidu.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d15sm419335lfg.0.2016.08.22.23.20.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2016 23:20:17 -0700 (PDT) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, sboyd@codeaurora.org, mturquette@baylibre.com Subject: [PATCH 1/2] clk: mvebu: set flags in CP110 gate clock Date: Tue, 23 Aug 2016 08:26:48 +0200 Message-Id: <1471933609-8456-2-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1471933609-8456-1-git-send-email-mw@semihalf.com> References: <1471933609-8456-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_232040_411943_18D94247 X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, jason@lakedaemon.net, tn@semihalf.com, nadavh@marvell.com, alior@marvell.com, jaz@semihalf.com, gregory.clement@free-electrons.com, Marcin Wojtas , sebastian.hesselbarth@gmail.com 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 Armada CP110 system controller comprise its own routine responsble for registering gate clocks. Among others 'flags' field in struct clk_init_data was not set, using a random values, which may cause an unpredicted behavior. This patch fixes the problem by setting CLK_IS_BASIC flag for all gated clocks of Armada 7k/8k SoCs family. Fixes: d3da3eaef7f4 ("clk: mvebu: new driver for Armada CP110 system ...") Signed-off-by: Marcin Wojtas --- drivers/clk/mvebu/cp110-system-controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mvebu/cp110-system-controller.c b/drivers/clk/mvebu/cp110-system-controller.c index 7fa42d6..0835e1d 100644 --- a/drivers/clk/mvebu/cp110-system-controller.c +++ b/drivers/clk/mvebu/cp110-system-controller.c @@ -144,6 +144,7 @@ static struct clk *cp110_register_gate(const char *name, init.name = name; init.ops = &cp110_gate_ops; + init.flags = CLK_IS_BASIC; init.parent_names = &parent_name; init.num_parents = 1;