From patchwork Wed Oct 31 18:36:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663181 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 E6FAC14DE for ; Wed, 31 Oct 2018 18:37:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2E3E2B478 for ; Wed, 31 Oct 2018 18:37:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C75052B643; Wed, 31 Oct 2018 18:37:14 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 AB8B12B63D for ; Wed, 31 Oct 2018 18:37:13 +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=f/xxWogIYPZfhPNE8G58ObjHMQEl2usjjS2gTF/pVmg=; b=grLB4U7ikk10m3 ID/usLI6PCSx5alIEpiEJN70cCaobtb96aKYnR4TdTKszO/PHToHv5Ws9XjPlHgZdFA3CgpiG6J9u 8vWdbZ7Xow3crUx9Fr7xulbjYIOYdvf363CPoY4NksE7WcnqDrbJGHT2ECav36uGtfSuzpgLRQR8Y LpZ2U5SKIWgWBs00LG6rLrM6WW8ZnWw2mRpQBpiEFupXhJWQGpFYfAFLDj3r5A/P3Vfj1EM8rPzHU bXMQAQ9R/6p3WhsCRKEq+SQWdStAyw+R7VR9dC+FGHWyQSM8OuB9QT7Npp5OnVLsc7dOlT0Fq1NEd E3DlGxChbtm5Pa3T5QDQ==; 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 1gHvMY-0004kY-Pf; Wed, 31 Oct 2018 18:37:06 +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 1gHvMU-0004it-BE for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:04 +0000 Received: by mail-pf1-x441.google.com with SMTP id g21-v6so8025539pfi.7 for ; Wed, 31 Oct 2018 11:36:51 -0700 (PDT) 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=U7lbeeSvEnZI4wYO4AdsAOv6p+rSk6vo3glAOsyex2g=; b=M4ht3Mz5mve84T3gpNuDl6d1buS5287grui3JQvm1qQQ4jS3FAjjA2yrdGq5q8uySQ dkpAkJl8wCOSa+IqEfGxldrsqAVp5bgTQkQqFATzfGUn3q2kE4kPTJ0sGUZkHCSNW+wU 7P0UIgUq70mgkoxYR0ng1ntqZem/kdV9eXDTE= 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=U7lbeeSvEnZI4wYO4AdsAOv6p+rSk6vo3glAOsyex2g=; b=tMpogDL9HA2MzrkNWHO82R0nwL+YhLJYjjE9QHz9SM8Z4eDFl2hJ0//MLw4nvHORJZ A7yzB0pYQJzt6L6PTaL83Y18Y6r/QBCVyfCQCpzyRZt+HSljDXd+IpWD5uLMoyNiKx6Z vdEiRh4ggonZljmNZUN3OOkVPYHvb/+dAaYisy0phzhXB7+1ClbAWqyNlYWpwvzaBHRg GdkW3kg1n+ISSUi+JK5efc2pKjt0X7zuZuaq/NE6+czP3aG6yVzduS4pmAg1ozWLTSW4 sO/izJIa/eA/fLXoO3Gr2I9Iaq5y0dM5d3CoVFO4OxPkxqJxJGgdq+B92Y9+dQku0EE8 0j8g== X-Gm-Message-State: AGRZ1gIrFx9Yxbzz/rdz5WIyUqClWvMFDmc5F3p1HB/iPkXiXHLfG+cB sANYEFofrMl8gTiVKFde34TOjw== X-Google-Smtp-Source: AJdET5d6SDNBgqzm6vbzEWsm8SaMihOKNtoV9jru8Y8s1qsmoH/HIIrxRazbm2ZuXDr2CTouctckMA== X-Received: by 2002:a62:5e02:: with SMTP id s2-v6mr4713768pfb.146.1541011010932; Wed, 31 Oct 2018 11:36:50 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.36.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:36:50 -0700 (PDT) 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 1/7] clk: sunxi-ng: sun50i: h6: Fix MMC clock mux width Date: Thu, 1 Nov 2018 00:06:28 +0530 Message-Id: <20181031183634.29640-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-20181031_113702_384034_703FE23E X-CRM114-Status: GOOD ( 13.34 ) 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 --- 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);