Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1677468imj; Thu, 14 Feb 2019 10:10:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IZaIwz7dCy9o7L+wejrEHvMdtHK39tAcSj884mnCv4x/GRAZK0a81sa7cE24txAoKlwaE32 X-Received: by 2002:a65:6542:: with SMTP id a2mr4919377pgw.389.1550167827504; Thu, 14 Feb 2019 10:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550167827; cv=none; d=google.com; s=arc-20160816; b=McX2IBHJLRpLA5AnvQQzbvQabgVN+P8oYwy/lmIqbXN45Kq73Q17NMv5Vw5nlDDeip pYwMdTuv6KwbGQWrdjQ9UWOrsIEqc6rVkYgtM0Ysj7IJXqWk93L+uKUiUwVNLuAIOk8X Iy6srat+GCP1XKNWLhlpztohd4ab0Re/Niw5aO/6F+TqsaMMz8RSgIoORuBqxKgdDEGd 7EYfEQsXhIibVgi2VN1nSM5OOjpQbICCFL1RjXLrgyzCMu5irgd8Jrs5sHOQOgg/coSr GEz+rIMqGVdRsBJ4W3yykWrRQPoTy7Ese4ttKCCLKfzyX33JKk41PYIEGJYzrQCKgLE/ eYcw== 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=W7iY/pnUEYF5emfg73beYSufjNkgbXn9DL9tvh0mtUo=; b=jlPl6ddk02yr4WTUTqmenfnpCvya2s2ApfKX+VI2r11TJttq/EF8mKVOl7ze+AU/6A PzLkmji03t0Hp1X/pwXwUYAiMHJuaYNoMeH/f48WWIZAp9UG5NyLbdGNWgmXi+kIGK00 eCt8J7yQqZI17l6vo8u7n+Z3F+h00TI9n1nMsk2Lz4wnYS8scYuGsGP5cWr6Feh+3tkd 1ZSH6W3P0o/PKCZg3C8N55Pn3VfxGgzIvGWCXjar+cbRlluY+RnupL2F1HZfCFZsZFKj WM3ZTTTiRTBQ2glqZas91+BP4Wk8XP5CHwOwEjIRhJI3NV6vpXNCoPd1TUwiYS7tEBv0 DMuA== 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 ci9si3354197plb.252.2019.02.14.10.10.11; Thu, 14 Feb 2019 10:10:27 -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 S2438403AbfBNKlO (ORCPT + 99 others); Thu, 14 Feb 2019 05:41:14 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:32896 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405084AbfBNKlL (ORCPT ); Thu, 14 Feb 2019 05:41:11 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1EAaOtl019135; Thu, 14 Feb 2019 11:40:55 +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 2qmy1naccp-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Feb 2019 11:40:55 +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 73C4231; Thu, 14 Feb 2019 10:40:54 +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 571D64EB0; Thu, 14 Feb 2019 10:40:54 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG4NODE2.st.com (10.75.127.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 14 Feb 2019 11:40:53 +0100 From: To: Michael Turquette , Stephen Boyd , Maxime Coquelin , Alexandre Torgue CC: , , , , Gabriel Fernandez Subject: [PATCH v2 5/7] clk: stm32mp1: fix HSI divider flag Date: Thu, 14 Feb 2019 11:40:45 +0100 Message-ID: <20190214104047.1173-6-gabriel.fernandez@st.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214104047.1173-1-gabriel.fernandez@st.com> References: <20190214104047.1173-1-gabriel.fernandez@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG4NODE2.st.com (10.75.127.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-14_07:,, 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. Fixes: 9bee94e7b7da ("clk: stm32mp1: Introduce STM32MP1 clock driver") 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 8b4e01af4848..8958bc11ff05 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