From patchwork Tue Mar 19 08:26:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10859081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60CAC17E0 for ; Tue, 19 Mar 2019 08:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4029A295BA for ; Tue, 19 Mar 2019 08:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 343B3295C7; Tue, 19 Mar 2019 08:26:55 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 DF74C295BA for ; Tue, 19 Mar 2019 08:26:54 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=4hmRkl6j3TMuYcfMUuD+tvAcBgwqjdLo4JpxvMf1PlM=; b=ePPVWBnV5MOwk4 dVoEs6sDnAMSs0Fy/FEBioAgBGVxB4qfG/OwNwXzJ8bRNK8aUMxssDhiC3VZsZg/E5KtauYLiK/7r UCbjXekwxNlFhDu7v/q+EBhKYPvPZ+Raox8rgkeZ23CFPT/PmHbnTsAt/CAVNXVi4gscva60WvOUc GL2K6thf6A3AQBcHsy2GDUwm8fkWqMwLqKS22doUrED52il+akPxk6QN765fvE5yarT8r73z08nOb H7MKva3lLBuN2Mp4PgOq8nDGW0KqGbZBX7EuhPOEu92qlhkH1dYJFg5JEcdq6+3IutaEzsgCmZDvH T9AlcJ+Kts0tp299cPVg==; 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 1h6A5E-0003WQ-KK; Tue, 19 Mar 2019 08:26:52 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6A5B-0003Uu-G8 for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 08:26:50 +0000 Received: by mail-wr1-x441.google.com with SMTP id w1so14015746wrp.2 for ; Tue, 19 Mar 2019 01:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CLzEElnP3dxyv8R6IH/C8LDRIdXF93RnCixM1ah2hMo=; b=ROfsAq4EycQSAWNhwT+bJP3yHo6sajvh/DOVf1X6KgoGiI9FciHoxYEc8Df3XiPt8S isAXnU6PNkc8HO1CnCg006HJ5iUkDYpup3J6p/mAUbDjenokGDTiv4VhxEVQAAIebk6Q aE1Fr4xSzuTBWBe795UPFcLrsV/bxyiRI8SwxxwIsJVZR7WLEbKjRlWpwNAnXOrjAb9f 6+B3YAOwIAD12R5cg3Y239tijtDUv6iCa24wFPXsXOL/Cb7GDoNLB6QZYOEEyTrrcrpp iQ2MILTCPTjt6pxLId9hVTDaxKKizya9OtgAPFr0qMI0Egw+jwvLaPF/wipx58PnrCp/ y3Vg== 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:mime-version :content-transfer-encoding; bh=CLzEElnP3dxyv8R6IH/C8LDRIdXF93RnCixM1ah2hMo=; b=GbpL0ikCEP2y+lPHvb/yno2ewXJtNdvyxuxYFsuJXiTCPo4SVVrEloHko2AzydEG5a pan+IuerWUNZxkkALmt6STYy+O7nuOMGsW8/ZDHl0AKB8eNiuk2Mi2XHNVyUOq2OTpVN C+9CiLV6gdpcdY+1fIn6+i7te8rPDxIswd3X34igw5j+RtlIKnEKZOj7YvmhtwfYxg9b kL88J3Ft2rqivhsebSfONnrBOAAuMQTWjh5DFJiNaC5m0hXpwFX57j89MlowKS+pEvJd FNjt9rmJ2RKlGxBNlw3uzkCvndEpFVZsHmjDvB2DMKS6ymDuCBCTSsGTUk5YUrZ2yuGf GglA== X-Gm-Message-State: APjAAAUQ32J5Sy0PjT+xoyuCJuGSsYSVtF+cKhMX4NpzAdRGl0F4+stt BmbnwH6qrh5duSOJkk3hKqOvnTJwJ2M= X-Google-Smtp-Source: APXvYqy21IQIltfVclIGabKt/9gSbK6VRtrToMVt+v8yERTtliPMgJyxHa9zJTAcoNBGOm7UuHmRHA== X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr16704504wrx.9.1552984003549; Tue, 19 Mar 2019 01:26:43 -0700 (PDT) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id 12sm3267104wme.25.2019.03.19.01.26.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 01:26:42 -0700 (PDT) From: Maxime Jourdan To: Neil Armstrong , Jerome Brunet Subject: [PATCH] clk: meson: g12a: fix VPU clock muxes mask Date: Tue, 19 Mar 2019 09:26:11 +0100 Message-Id: <20190319082611.6215-1-mjourdan@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_012649_538415_C1A31DF1 X-CRM114-Status: GOOD ( 10.77 ) 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: Maxime Jourdan , linux-kernel@vger.kernel.org, Jian Hu , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 There are 8 parents, use 0x7 Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Signed-off-by: Maxime Jourdan --- drivers/clk/meson/g12a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index cfb91df884cb..e52b0b53f398 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -1391,7 +1391,7 @@ static const char * const g12a_vpu_parent_names[] = { static struct clk_regmap g12a_vpu_0_sel = { .data = &(struct clk_regmap_mux_data){ .offset = HHI_VPU_CLK_CNTL, - .mask = 0x3, + .mask = 0x7, .shift = 9, }, .hw.init = &(struct clk_init_data){ @@ -1435,7 +1435,7 @@ static struct clk_regmap g12a_vpu_0 = { static struct clk_regmap g12a_vpu_1_sel = { .data = &(struct clk_regmap_mux_data){ .offset = HHI_VPU_CLK_CNTL, - .mask = 0x3, + .mask = 0x7, .shift = 25, }, .hw.init = &(struct clk_init_data){