Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3852618imj; Tue, 12 Feb 2019 05:53:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IadZnPaUYTtTZwFgItSJ5tn8BamlnKZM2qNGtgOvBUKJ2GoWSw2nJvWR+9HflDvHudEiIog X-Received: by 2002:a17:902:d708:: with SMTP id w8mr4214465ply.294.1549979582793; Tue, 12 Feb 2019 05:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549979582; cv=none; d=google.com; s=arc-20160816; b=MlfMLHbKZnywnnYVeNf62A9lqZiTYidjuZJ4scXCfO+0Hi73CCtjUTeNSDCPzGS4t4 2bofF5KdWrSFMEXojh7a/AdL00/5IlEsaTiGIEN+p6eyxelFrxdZ7UyEUm+X2OlMQY2L Ck/ywfHtPbCB88jYOoPzqxZGna4788BQpyf7jrtiMAHpUNwu46lMOQYLJ+bQderzXBz3 ugAFyP/lOEyAULc1xRmr5pARAT7Xw7WN69Jb/6jrdqiQTIfSW6wqtChW9PFRU2CcNS3z cSLXTwSVGhKn2CW/Erax42JyFHVaKb3aSGJbQiSMv04bK03OVTkYiRHiptJgqVXKMcVA tJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Fl4zfbMeAfZGxXPPQ74kuEAhA7ZOxZ9tKga9dnf4ML0=; b=cciEC5XC4AKOfRbIJAqLYtUKLmp8s+0HH8bcVOtb/g+VQx8wgpt+Mzqb3R1aLWj0mY qI54RqRDBiclPfWkmELFMXMF55p4KmHYtz3kTeM+H97CxNULFS14XrHKqZVmyPRrvX0m PFdeJOz6P7CkRBsiI5hOamrnpwNdUmxTv2NIgLiAc9LSV0t43HV55QUhnEmpDIGRwXMw Ydtm4LJ2O1FSK0CHqbqt3b1arTKQhDb+y0OcrgOaujeeoKVY1DQ+jhjcmhnokir32vHf 5oYs7HwHV+BIjVgl8tEUtKz/wBeMe4xF8BPUHknA+m8fuDLFYmv7hiyrgqkgZBHQLOnp s9TA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si11746539pgw.142.2019.02.12.05.52.46; Tue, 12 Feb 2019 05:53:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730097AbfBLNwX (ORCPT + 99 others); Tue, 12 Feb 2019 08:52:23 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:1131 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730053AbfBLNwT (ORCPT ); Tue, 12 Feb 2019 08:52:19 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1CDpQBY020422; Tue, 12 Feb 2019 14:52:05 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2qhurj0jdf-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 12 Feb 2019 14:52:05 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 04CA472; Tue, 12 Feb 2019 13:52:05 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag4node2.st.com [10.75.127.11]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D45E85127; Tue, 12 Feb 2019 13:52:04 +0000 (GMT) Received: from localhost (10.75.127.49) by SFHDAG4NODE2.st.com (10.75.127.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 12 Feb 2019 14:52:04 +0100 From: To: Michael Turquette , Stephen Boyd , Maxime Coquelin , Alexandre Torgue CC: , , , , Gabriel Fernandez Subject: [PATCH 5/7] clk: stm32mp1: fix HSI divider flag Date: Tue, 12 Feb 2019 14:51:52 +0100 Message-ID: <20190212135154.2733-6-gabriel.fernandez@st.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190212135154.2733-1-gabriel.fernandez@st.com> References: <20190212135154.2733-1-gabriel.fernandez@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) To SFHDAG4NODE2.st.com (10.75.127.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-12_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriel Fernandez The divider of HSI (clk-hsi-div) is power of two divider. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index 385dac678a7f..863586a71d49 100644 --- a/drivers/clk/clk-stm32mp1.c +++ b/drivers/clk/clk-stm32mp1.c @@ -1656,8 +1656,8 @@ static const struct stm32_mux_cfg ker_mux_cfg[M_LAST] = { static const struct clock_config stm32mp1_clock_cfg[] = { /* Oscillator divider */ - DIV(NO_ID, "clk-hsi-div", "clk-hsi", 0, RCC_HSICFGR, 0, 2, - CLK_DIVIDER_READ_ONLY), + DIV(NO_ID, "clk-hsi-div", "clk-hsi", CLK_DIVIDER_POWER_OF_TWO, + RCC_HSICFGR, 0, 2, CLK_DIVIDER_READ_ONLY), /* External / Internal Oscillators */ GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0), -- 2.17.0