From patchwork Fri Jan 5 17:09:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 123550 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1057835qgn; Fri, 5 Jan 2018 09:10:07 -0800 (PST) X-Google-Smtp-Source: ACJfBotoCEeY7BNnRKZzYsBQYSd54LXwPFEJQuxdTg+yF+TQd+6QkpNmvsqK63PaPuZasSlTgFH6 X-Received: by 10.98.34.76 with SMTP id i73mr3605976pfi.37.1515172207615; Fri, 05 Jan 2018 09:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515172207; cv=none; d=google.com; s=arc-20160816; b=MR7f4hGGduWxOSXlp8K/iWrMmIyRdp65zDXxVwvMkkw+bXG5o9yXRKeRlrGpmESAtB s7uCi6BQur/gKMMqWWLA6YT5toPTinu7qTeeZplKshJso40qNZWdlKy6w+d6AVDCIkVz H0SGVx9006oRAAxp64Tg0X3inB3pWvKPmJwliPBKzix9FkkDN30hpCSHecR2wtSSjc1O XQRDurrhaUTguUOFLdkHpPj+ploOuFhB1z+Kf4qFLlJ81eb4au+eZ0MM/xTSBjooC7hP KuZAyXQRrMtKBTmXFOYFsyfNU2j/zMcR85Ebp4MtNK/ul94vOLzNLeKJnVx6GQrguRoE c+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=sr8erCbr1gKr2NU+JfqmvJA5sdRX0heQDKkyTNG/xvw=; b=NgxBJN73hj5VF84C51cHkvZAran2FxBUclQ8QSF/v6a5Km0sXuc/Fbqd5vBVgcuwcY kl3FsCgs+lgvGGxpscgrmW1orJlwgfe5C3MHep7qCpWB+QH/OgqVxJiY8O06IKJ+pwSo uBsHcoQ9Lkyl1mWD0cJDdYV1d9Sp/xFw64aoDgnOrxhviW9pH8tNuXXwEt7HCJd0sw41 ugA+ydapkrq+gRp4JIkBlNOmDheaREJXF62dqR5R8Z2BGF02bWN9E0e1Uqf4n0vwnzgO dK2Ha1LJLUO1xwVxGMTBzeCQKm262jSIbyuhKSRZQH+w3mzs1/Dn6tSU1WdmuTTJrxx7 +kRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=iRd5bxOT; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 h90si4196709plb.644.2018.01.05.09.10.07; Fri, 05 Jan 2018 09:10:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=iRd5bxOT; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752332AbeAERKF (ORCPT + 10 others); Fri, 5 Jan 2018 12:10:05 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34061 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbeAERKE (ORCPT ); Fri, 5 Jan 2018 12:10:04 -0500 Received: by mail-wr0-f193.google.com with SMTP id 36so4889464wrh.1 for ; Fri, 05 Jan 2018 09:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=XP3l6mJdspEtd95NlN7kbSNhClxAfnkZsMbLxX/NX/I=; b=iRd5bxOTH45rEyaAstw/SgcNpjET3gdc8zZfJGWCi9fQXPcx/gooL425HgN1EzeJFQ K0FHWNZuNw0hezspwbfHR6qNsCalFh0uYM60MLr4bjZNdQbCbfRy4A8gTctLr9at/nf2 E8z9oijwihWCS81BZxW8Qfj1QAUxPelwYFZwo9bjP4t2dh3FSAhp1gxhTyn+VI+DLZiD EZpByZDM2FTkf33RgMQh/mpB+mdL647E+FaslcX4veuLALkIVleBN/azlU8SPQQGsJNZ 8Lja+vsJk7rbRoCOkdONLoxCovBgxwbR85Ki+D2Okn9HSbNlNtG3rQfnpMh+TYrpObBI Hc7A== 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=XP3l6mJdspEtd95NlN7kbSNhClxAfnkZsMbLxX/NX/I=; b=XCmSnPqK0hcrgW6QAz9vgVrFGc+Mqn8v7KxqGY9ocxGbLvVcSHF969DFaZRl4JMIuQ sfrd+YzL2UFdzYwHYW3fbWv/uQKmD1TfnFBAg8wF2AoIYEWx2APu1TFLvrWRpEUm6EZD dNtusqnQQ/fN1ZiP5652GnINs7iYjchMth4+jtjfVfOIzFvs28y4I0DUo7Sn654jHTUP sLENVzXsVJL5dTsr+Hk+22XYNxlwzXv2VLvxfiu2QrGzVHJjfIPklIvA1cMWRURjKslc 34a7/Yz6UsBoTWUKH44U0j7pJ0taf0gmEHryJFI0m+a4qQ5J2+C+qodptykhzqTnLQ7p nm6w== X-Gm-Message-State: AKGB3mLfp19+qxKUEiA9xKHgixLpla4wHi3xzpnmWmSGVuzyu60S0qdw ggmeWtQuXCW/7uq+UF/65tXgtg== X-Received: by 10.223.197.11 with SMTP id q11mr3361557wrf.186.1515172203451; Fri, 05 Jan 2018 09:10:03 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id g17sm3263661wra.6.2018.01.05.09.10.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jan 2018 09:10:02 -0800 (PST) From: Jerome Brunet To: Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org Cc: Jerome Brunet , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Vladimir Zapolskiy , Sylvain Lemieux , Andy Gross , David Brown Subject: [PATCH 0/5] clk: read-only dividers and rate propagation fixup Date: Fri, 5 Jan 2018 18:09:54 +0100 Message-Id: <20180105170959.17266-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org A read-only divider may also have CLK_SET_RATE_PARENT flag set, in which case it should propagate the requested rate to its parent, taking the read-only divider value into account. While this is done correctly in qcom's clk-regmap-divider, it is not in the generic divider and lpc32xx. Other drivers using divider_round_rate are not impacted because they are using hard-coded flags without CLK_DIVIDER_READ_ONLY, so read-only dividers does seems to be concern for them and rate propagation should work as expected Jerome Brunet (5): clk: divider: read-only divider can propagate rate change clk: lpc32xx: read-only divider can propagate rate change clk: divider: add divider_ro_round_rate helper clk: lpc32xx: use divider_ro_round_rate helper clk: qcom: use divider_ro_round_rate helper drivers/clk/clk-divider.c | 35 +++++++++++++++++++++++++++++------ drivers/clk/nxp/clk-lpc32xx.c | 15 ++++++++------- drivers/clk/qcom/clk-regmap-divider.c | 19 ++++++------------- include/linux/clk-provider.h | 15 +++++++++++++++ 4 files changed, 58 insertions(+), 26 deletions(-) -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html