From patchwork Fri Nov 15 22:33:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 179539 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp13127118ilf; Fri, 15 Nov 2019 14:34:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxx+SPOrTgmGUY5l54czqOL8Arh32Skl4thqyazDhtZ02HSo8g0oCdt3WX0cFGG4zVdy/nL X-Received: by 2002:a17:906:e88:: with SMTP id p8mr4385558ejf.15.1573857293146; Fri, 15 Nov 2019 14:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573857293; cv=none; d=google.com; s=arc-20160816; b=fvWzVClwtTNJ04zO+4PWg55iMhxy6Qm32jlYR+m3WAT9Ou7p5rl29YujP7GOvXTJ5h 8GWHFIbnJrj57EPzFa/rcv/kOOqQQvYf3Sw66CknBv2MlSLtAffr8+dHQSCAubdp7dt0 WtUGpxA3kOXEsHSuZhJPPTnKGdUPgOMAZHgyYKK4A2kl8JLg4NHG9IcSxDIGkHQXaTSJ FM3TDL1vhu87TRuTGNpFRMY5e0kIwdwVLx9r6tvmMUhM7VivEeUrY1bGkhY0u+S62iuQ duaGhnzzjWNIFP/1EqdNlY995kGv/t2LBm4CNUFoSAMs9b4bVnsZ8oEqpttVdQWeia9k Hi5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=XjmHZ2r/4EcW1pjM4Rd69/tyPSpvDzWdjKn2vf5w1qY=; b=sv5p+iC4ClKxINmCKMgFUKWvgswgsBB0hBQN7zxWt3V1A3f8H0N8K1CuuVWXFD8/oV GF++FdOn75ij5rqM1aRuvW2F77L0h7jv1WDEK8FwlbA2t0nLsNaYMGiP+v4OBDYmdyaI Qclq+UoLwysqEugZRVFBBGdtlAM9oxRW2/Ny0PsysIhHEmpGSO9WURuTsl1FkZD0kQ1p Va6nZjjKoukcdLlVHEOvgdT0Y5lHVyvbi+v45mvtwXeXsLbnAN5v4NP2WsINLTF68M9n E/G5X4S8nBipc1NmcKZa8pKxu7yd9lX1Sy/vyBD0QfJKuZpFDpaLY1uYS5LAuvIqHmHH NQew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5q+0xMs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id re9si6820483ejb.332.2019.11.15.14.34.52; Fri, 15 Nov 2019 14:34:53 -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; dkim=pass header.i=@linaro.org header.s=google header.b=a5q+0xMs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727567AbfKOWev (ORCPT + 26 others); Fri, 15 Nov 2019 17:34:51 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38664 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727276AbfKOWeH (ORCPT ); Fri, 15 Nov 2019 17:34:07 -0500 Received: by mail-pf1-f193.google.com with SMTP id c13so7336752pfp.5 for ; Fri, 15 Nov 2019 14:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XjmHZ2r/4EcW1pjM4Rd69/tyPSpvDzWdjKn2vf5w1qY=; b=a5q+0xMs8tIeJh8UJ8TVx8rZWUYZ16E5HxEnB0bRUqdlVxfqcyrfWViLr9Pn7dJisY VqRFpH8/EN3p18o/KhB6P43Ky8JCimROhKeXLcPYbCV9IN4oJ2CVylJtMtP7qfwro7o7 SxdF13uvII4gAOlurEJrm50rCXFufEWhRyX+jcjvLDDHPbDNOBjiwTeiV6mHv4gY2lCf v6zbwJPxmKb/vDqIU9Wohh6rRB9E8a5QwUHIEM0ATxuwA7uLwKPIO6cIdiBE5ysfdmSV afv+gI97KSg+6usaoQb/OTeraFQQt+e/l1ahp52XQnTElIh1w5nC/Zk54P7lMFFDyeem GE7Q== 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:in-reply-to :references; bh=XjmHZ2r/4EcW1pjM4Rd69/tyPSpvDzWdjKn2vf5w1qY=; b=S+p9kivv5dSk6HrPg2gYiKxqc3HMl9JZRRslvy0pny+ZUes05NhtJ3opAqOoFLRc8S gGPTZXAxReQR305Ei9lTY+whfrwu32XY/IxiqBsIgxx0YlDKyF2bFVebWY0B/QG1/6u2 Cf8gGC0a0eZ1SVRkObZfAjxsc0AiN2Niyd3qqOSJbsSZeQ/PE/DaiP07+S16qxbGVd1n l2BT7lS1nTo2M98pO3DRwcZ8KF3s7QpGhlV2yvvfghYO2iJXmZOggt31Y09+OKfMRrkd H0ddUkJNnpgorhwI37dfP0oWhBViYsfSTSrtbPene2/6zoMBX23QRqzqr2jnNxW7mseJ 3cEg== X-Gm-Message-State: APjAAAVRQ3TpWtUkc6h3AiQ+oS6qatIxGqay8LPDlrADu41/gdXpCcKL 3DgZ4P8RMXowsqgkih0zm0XDBDPyzMc= X-Received: by 2002:a63:181f:: with SMTP id y31mr18239880pgl.186.1573857245156; Fri, 15 Nov 2019 14:34:05 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id m15sm11699724pfh.19.2019.11.15.14.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 14:34:04 -0800 (PST) From: Mathieu Poirier To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [stable 4.19+][PATCH 09/20] clk: stm32mp1: fix HSI divider flag Date: Fri, 15 Nov 2019 15:33:45 -0700 Message-Id: <20191115223356.27675-9-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191115223356.27675-1-mathieu.poirier@linaro.org> References: <20191115223356.27675-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriel Fernandez commit d3f2e33c875de5052e032a9eefa64c897a930ed1 upstream 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 Signed-off-by: Stephen Boyd Cc: stable # 4.19+ Signed-off-by: Mathieu Poirier --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index a907555b2a3d..d602ae72eb81 100644 --- a/drivers/clk/clk-stm32mp1.c +++ b/drivers/clk/clk-stm32mp1.c @@ -1655,8 +1655,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),