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: 9295029 X-Patchwork-Delegate: sboyd@codeaurora.org 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 CD362607D0 for ; Tue, 23 Aug 2016 06:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF8DC28B53 for ; Tue, 23 Aug 2016 06:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B45AA28B61; Tue, 23 Aug 2016 06:28:23 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3732628B53 for ; Tue, 23 Aug 2016 06:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755228AbcHWG2W (ORCPT ); Tue, 23 Aug 2016 02:28:22 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:35885 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754238AbcHWG2V (ORCPT ); Tue, 23 Aug 2016 02:28:21 -0400 Received: by mail-lf0-f43.google.com with SMTP id g62so93517826lfe.3 for ; Mon, 22 Aug 2016 23:28:21 -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=XZYLEVRShev2nPyq+aFJIt5dHCcpo7dGoNaHz71a+et8QaLyBegZmfK/8OomSveI0N wIsFNZCU/BB5Qk8jfj5g8y9Hpvsgdoqr0BYo8PjRrL4lEI9jVg+qv12feyusIeDHCW2y qOaBgsaQHiGiL2GCHzcAQBmzuBNFenE3O7KkCNyJwYgnZIQLHanv4VJd11qvk0QZcWKy rWJNngzn7wjzodRuZZkZwKJS0FteKpryQ5bxYGjE08LFZiiaJbqyyp0cR8IAGLNgZ/PC 2rXPKp/bz8m2FfAOKZvN8OegdtkxSd2iK5B4OMrMHeCD2mSBEAodITq7ht7IaQ3U0YOj VVsg== X-Gm-Message-State: AEkoouuQcE8MSJVOHvkdcO7i+ZBJ0QGyic/Ujlr1JNn57nO/ZealsTEyQ4cw5Tl2iCHnnQ== 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 Cc: sebastian.hesselbarth@gmail.com, andrew@lunn.ch, jason@lakedaemon.net, thomas.petazzoni@free-electrons.com, gregory.clement@free-electrons.com, nadavh@marvell.com, alior@marvell.com, tn@semihalf.com, jaz@semihalf.com, Marcin Wojtas 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> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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;