From patchwork Mon Nov 5 07:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10667533 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 1151913B5 for ; Mon, 5 Nov 2018 07:49:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0278B29699 for ; Mon, 5 Nov 2018 07:49:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAA83296A7; Mon, 5 Nov 2018 07:49:16 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 73E0729699 for ; Mon, 5 Nov 2018 07:49:15 +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=zCEsYbz6n3ylOFaSuxoC46HI57uHEKI/grOkRuHbTN8=; b=h+eUDXtBFw1EVi im/P6HTLytTZqBNRV+0cYRziNZqSU8S9aAVBP3vZU7xoVnzUnfNRKKU/TFQFV7q6q02agk3N9aJ3r qx+AMXLYTw1uMUkmQZ1YTdLsCr1Bn1elEcmYxYH5nSCZ4ebUwBHgpapMqWQLN7eJgjhtKR6gROgaZ G1MTff0JXqhboUjjtdyu0/UQ0RHODub3mgjEA9wV8bHqlQRq+6WkvJBjSv1b1oqB1TF170slhcAuC oDBKEuJiO4HoRbH5NuhdvtDtyonIZDYysDhAkOT8nuFokYLt3Ed0olW4SuxeVs7jSDfwDnMkPk4mb KbTN3eZ6TvHC78ocwgnA==; 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 1gJZdJ-0000CR-HA; Mon, 05 Nov 2018 07:49:13 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJZdG-0000AM-8S for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2018 07:49:11 +0000 Received: by mail-pf1-x441.google.com with SMTP id e22-v6so4006295pfn.8 for ; Sun, 04 Nov 2018 23:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GMamYhMEle5zZRUIf2BW/VRpXWPE7SAmpDCvvm5fmss=; b=fmxZV8EivFc6tMqWgoH5DCh1kjiuYNZMKQRc4quu/86Wh7Iur7KKE53qldYyIee2mm ta+d044h7EXLeedFZ7a8xOtIEkDF26I5KP8Kto649jmGRbJT3ZIrBNGehpQdzJWXIUEI f99BuoGD30T9L4jjH8S7lEGAWp5spgd76wkjw= 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=GMamYhMEle5zZRUIf2BW/VRpXWPE7SAmpDCvvm5fmss=; b=cV31xkPhTrf0m5YKJTUBCDLeRKguPCEvy+cReU6C/lFko1wYCeK2oo49vbOZVBiRoD ChCDv3NlKeD1PdD7jS/R9a4oTL2KVPSyF5uHGui4W3biIqgKHCVr+uUnyDdiuTdMgq2Z nDRdwAZx5Ckcbulq8gA7zbYRqpm8tJJzAkRjHWlJfxrg2+Y01S+mfB/JXG6os7cUcLd2 oKgA3onsqPKiUhz9YCorhZDjiTwIIoMQKlPmNZGiDfXLaeTPaxye8TfAsNmScpUUeFHp 9/pKBqkeysjmg9gzTPfMHPkajYqlG5F/fXjrTu0m+xHKAJctHEHwFep3JB/8Xg9eVNzG 92Wg== X-Gm-Message-State: AGRZ1gLQ37Ud6Li/JtP76Y4z0Vdbt+xohxjTk2YRsOD/EvDIOt2N9HgP S5+ueTGfNhLZeDz0kqpc6ro3QW3KWvQ= X-Google-Smtp-Source: AJdET5c9hXAbw7HtfKN5cVpK67Jarr05cpGFCab5CK0IMijp+7I/sQ4hns6dfWbr4tIppStjYaJyQw== X-Received: by 2002:a63:a001:: with SMTP id r1mr19383019pge.268.1541404138738; Sun, 04 Nov 2018 23:48:58 -0800 (PST) Received: from localhost.localdomain ([2405:204:638e:987d:4588:e264:3e7b:ee8]) by smtp.gmail.com with ESMTPSA id n189-v6sm14790630pfn.163.2018.11.04.23.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 23:48:58 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 1/3] clk: sunxi-ng: sun50i: h6: Fix MMC clock mux width Date: Mon, 5 Nov 2018 13:18:40 +0530 Message-Id: <20181105074842.21988-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181104_234910_300501_68645F70 X-CRM114-Status: GOOD ( 13.15 ) 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: Jagan Teki 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 MUX bits for MMC clock register range are 25:24 where 24 is shift and 2 is width So fix the width number from 3 to 2. Fixes: 524353ea480b ("clk: sunxi-ng: add support for the Allwinner H6 CCU") Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v2: - none drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c index 2193e1495086..e2bc612f1d3e 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c @@ -411,7 +411,7 @@ static const char * const mmc_parents[] = { "osc24M", "pll-periph0-2x", static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", mmc_parents, 0x830, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0); @@ -419,7 +419,7 @@ static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", mmc_parents, 0x830, static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", mmc_parents, 0x834, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0); @@ -427,7 +427,7 @@ static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", mmc_parents, 0x834, static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc2_clk, "mmc2", mmc_parents, 0x838, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0);