From patchwork Mon Aug 7 14:51:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9885513 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 CA9A5603B4 for ; Mon, 7 Aug 2017 14:52:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB25528429 for ; Mon, 7 Aug 2017 14:52:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF8BD28671; Mon, 7 Aug 2017 14:52:36 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 7303928429 for ; Mon, 7 Aug 2017 14:52:35 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=1k36onWMtX8cYTUbmwf+7x5rbVmtP5sd6K4ujcQAPrE=; b=Onn 2sF+4C/XKfskZBKX7qc+5TY7wMF1g/PcU0Sf++FiT22PHjt6wSa05VNkMPUN4V6saTAN901/WDA8t 1BfzncE63+NkQS9ZfS3xnBhKO7iqeTwNc7rdGQiggsAZT8CBFIcR8Jo2PKyVwCL2Oc/axNpWZKz/g ZUX2phJOBzm/uOb5JyjY8f4YyS5F96ahCM7093oFwbGz4PN8JOCu2Jq01b5OWh811pL2hYoIW26Tp qGDF0YPrwTjSQXhFs8kfILzsBdLTF2jD6zIWryu7/fTMtdb7P02fpNIDYdZdQxWiLBBRoyzaqPUsv IaaliArMGNYAeZoYZcqhJtzqXvb4iFA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dejOR-0001x7-6q; Mon, 07 Aug 2017 14:52:31 +0000 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dejON-0001uS-LN for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 14:52:29 +0000 Received: by mail-pg0-x236.google.com with SMTP id v189so2578669pgd.2 for ; Mon, 07 Aug 2017 07:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ec0e2Nq7ie2h6qzkkcAuRYquTK7yvRG0FnBEZ5KqHZM=; b=MUi+b2n1nfeAGzhAZEPiyazF+Nl2dIUEcBH/j5aJ/qGMn/7ox9zfUtPMG5dl83jaM5 DmzuubGM4BInnIPFZjkBFFZINMqJE+1o/YGJjYQvkSwlEWOEeoksaCMMU0a1e6RhDvdF 9MR9SHqxdAd6Ygg0dZ0xxIveOJZq5vrnSPVhw= 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; bh=ec0e2Nq7ie2h6qzkkcAuRYquTK7yvRG0FnBEZ5KqHZM=; b=tU+JCK338o7iiAXOTon5ZkFoCwOkxWNah3BCu+Ly2WuYznF1fR6O+RsLgTsOw1Jlle aRIzwBxycuWycXVF35RrTF9Pvw3x4nLFarWV449aszxXfGcq+rcnZnCAiR9M6dGy0cUD BTZMjyAKg2u8lh/coe43dq4vDFExdaYnHfu5bLMLLlatW5s6EP/GI/jie77konsOGZYB cjTWXzZTBEk61jUuSSQ/v0unT7wW3jslBMbhr9B7T4AlsJZ07HLTzp4C42DOc16IeUAY 3h3F9k/BAwedxeoUuDC8iVan6vtVCSikTyVasQw/TCIPFs1MAVsUQNrrlNZ9zYEDdn6Z C0YQ== X-Gm-Message-State: AHYfb5gAV/SnZMK8mHeHvkwx2L8IMrOXAkAlJDnx2h52KeOt+MTGSiUU sqlBoOCXmXU2wMTk X-Received: by 10.98.16.68 with SMTP id y65mr845361pfi.165.1502117526764; Mon, 07 Aug 2017 07:52:06 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id p80sm16871832pfa.19.2017.08.07.07.52.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 07:52:06 -0700 (PDT) From: Guodong Xu To: mturquette@baylibre.com, sboyd@codeaurora.org Subject: [PATCH] clk: hi3660: fix incorrect uart3 clock freqency Date: Mon, 7 Aug 2017 22:51:56 +0800 Message-Id: <20170807145156.7880-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_075227_738338_21F1D108 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. 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: Guodong Xu , linux-kernel@vger.kernel.org, zhongkaihua@huawei.com, linux-arm-kernel@lists.infradead.org, leo.yan@linaro.org, zhangfei.gao@linaro.org, linux-clk@vger.kernel.org, chenjun14@huawei.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 From: Zhong Kaihua UART3 clock rate is doubled in previous commit. This error is not detected until recently a mezzanine board which makes real use of uart3 port (through LS connector of 96boards) was setup and tested on hi3660-hikey960 board. This patch changes clock source rate of clk_factor_uart3 to 100000000. Signed-off-by: Zhong Kaihua Signed-off-by: Guodong Xu --- drivers/clk/hisilicon/clk-hi3660.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/hisilicon/clk-hi3660.c b/drivers/clk/hisilicon/clk-hi3660.c index a18258e..f404199 100644 --- a/drivers/clk/hisilicon/clk-hi3660.c +++ b/drivers/clk/hisilicon/clk-hi3660.c @@ -34,7 +34,7 @@ static const struct hisi_fixed_rate_clock hi3660_fixed_rate_clks[] = { /* crgctrl */ static const struct hisi_fixed_factor_clock hi3660_crg_fixed_factor_clks[] = { - { HI3660_FACTOR_UART3, "clk_factor_uart3", "iomcu_peri0", 1, 8, 0, }, + { HI3660_FACTOR_UART3, "clk_factor_uart3", "iomcu_peri0", 1, 16, 0, }, { HI3660_CLK_FACTOR_MMC, "clk_factor_mmc", "clkin_sys", 1, 6, 0, }, { HI3660_CLK_GATE_I2C0, "clk_gate_i2c0", "clk_i2c0_iomcu", 1, 4, 0, }, { HI3660_CLK_GATE_I2C1, "clk_gate_i2c1", "clk_i2c1_iomcu", 1, 4, 0, },