From patchwork Wed Feb 14 13:43:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 128342 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp622090ljc; Wed, 14 Feb 2018 05:43:53 -0800 (PST) X-Google-Smtp-Source: AH8x227KS16znZcSPq2ycyTPxVt3nStAaoXrCeUt3i8c8fJQeK/WpvrZIej9RG4GvNpDrfj+iDjr X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr4627322plr.340.1518615833046; Wed, 14 Feb 2018 05:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518615833; cv=none; d=google.com; s=arc-20160816; b=chkRBffpvhQENDFXkw3vK1uoxX8o2m3JiQrU92ya3pdz51KgFXM8wW9rikzGPv7kMw LUd9JkiihY6VcU82HM0+pj9kzF8gtsgSOmVGFaBzQm1Pm6ybxse8HiJ4NVVlN3/lRWGg 6AToUajzOxTuDpHBI7y7DZB/XTUJjGylHUDsYF495KC/QV+Y6uEVzHWEeCKlk/ZnFSJd jFCUsmgP3xZlAokOoKURD33Ml6R2BdMkMJOUQAtQvkx9Ap5YZktrjG0NaZAnVDNxbucV cQTCAkdA+G2FcsUnGa6kznHZmjUir1Tg4k6bJ+1g29D9l0H+VC3pWU6i5ApVGQFaykpZ 8vJw== 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=MYQ0DXe9moblz3z15MVlv6I0w3/sgDD/iX0dbup+8jY=; b=ywc11GPo2EBk5ewSkk1GBNXo/iwzvbXWTzRBvHNZqnRogeWh7+ifOBhCbOkoFQ0c9i OLM7isPBU2UL5OsfGdjDzyE1CHahIi+gPpH42ElOHUqSfNpOI2UNm//2qOcXnnzxn2y0 b6CV9gyupnzxV8asVSVnUjuVktyyAd8oDFzi4sTCQQipD51GwOJM+XHmxybNOVYGc/dh v/u5wGAg6++AWOF7uGDrU1e0l8rnI41xkN0XVKJDWJhlJq00xVsREgA8IFJLoMQFy3GV f9UfEJ0pBJfu0IZ2WulfBYsdnkt8NTCEIhk/oJPaU3mg/4wbCOzqVLv6i6UIDehRx+7E aNaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vvYGy71y; 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 s2si1272068pgo.362.2018.02.14.05.43.52; Wed, 14 Feb 2018 05:43: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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vvYGy71y; 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 S1030358AbeBNNnr (ORCPT + 28 others); Wed, 14 Feb 2018 08:43:47 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36510 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030246AbeBNNnp (ORCPT ); Wed, 14 Feb 2018 08:43:45 -0500 Received: by mail-wr0-f195.google.com with SMTP id u15so642895wrg.3 for ; Wed, 14 Feb 2018 05:43:45 -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=MYQ0DXe9moblz3z15MVlv6I0w3/sgDD/iX0dbup+8jY=; b=vvYGy71y0JSCQiaYJXUC32N5AmuZZ/aB6JGg5CPUY2hRqsk6GLEloLuF9mrtimhofA qQQiWatF0vgujeiXnml64uMrO/JvkfCkPKVCvJENV4ZrS+GpM6CGM2dPZhU9aoDNUgqW vI4t8niAtLbbL/ME/HPrfOFqp2YT/iEfgguPXig+TQT2lcePDjEO1Vpm5925OPSCke5M HQCh4N4XYv7uhWVN0YQmFwMKazjW9KM8hURQ6OpKjM1pZ3jiX/N6EW4txMtLXDbl7iAS nU8Kj0EZrbIHtx7dOye65oT+ccwZR7gKA1auGY1r0FmY0+71943ZRyJmUiyeZ4i6taP0 XzuA== 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=MYQ0DXe9moblz3z15MVlv6I0w3/sgDD/iX0dbup+8jY=; b=TsHPUfBt3iHG5TpW1WUc9QSBnJNPx7D/2P8d7d1vUthCC4chS/Zu1A5PxmtQWpndJk UT6B9q5Mogcia9GSztfgaxNnOIcJFJohmxnehDAlLM5a3NYoWdLeY7QRwj2m48Ru14NG OXlwY4AT9ZJeuAm7doW2V+1zQIjdZEZ/9yifJfiUDKOm/bAcPKGU5iRr/w7Cqn4Bt/5X mHfKmiP3/bvRRZCzmPeXsQLkp1k3EpxtqOye6OE5Xeoy6B+lv3xEwWZ0G26Sznfw2CY+ 503mEZ+F4jBdw1JgX3ScF0v22Zl+PdEzxzkTzPUQhODOgRKBhqHGjqEb0jHtHvE6r48y SouA== X-Gm-Message-State: APf1xPAjoxcMqNB/On17/jtcSL6dIX3bY3jGaHQFTTrUMYH+K0y36/Xs kyNBaMBqabh2obWaIwshg+EenQ== X-Received: by 10.223.156.145 with SMTP id d17mr4759334wre.1.1518615824394; Wed, 14 Feb 2018 05:43:44 -0800 (PST) Received: from boomer.lan (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id k5sm6337694wmg.47.2018.02.14.05.43.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 05:43:43 -0800 (PST) From: Jerome Brunet To: Michael Turquette , Stephen Boyd Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/8] clk: helpers and fixes Date: Wed, 14 Feb 2018 14:43:32 +0100 Message-Id: <20180214134340.17242-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This changset is consist of various patches I have recently sent for the clock framework. They are gathered here for your convinience. The first two changes exports helpers of the generic clocks (divider and mux). The goal is to avoid code duplication when writing clock driver derived from these generic clock drivers. The rest fixes various issues found in the clock framework while working on a rework of meson's clock controllers [0] Changes since the v1s: * dropped lpc32xx divider read-only patches as requested by Vladimir Zapolskiy [2] * Squashed generic divider read-only patches * Squashed mux documentations patches [0]: https://lkml.kernel.org/r/20180212145846.19380-1-jbrunet@baylibre.com [2]: https://lkml.kernel.org/r/54782a8f-9735-a574-d8e1-7ff3e9173229@mleia.com Jerome Brunet (8): clk: divider: export clk_div_mask() helper clk: mux: add helper function for index/value translation clk: fix determine rate error with pass-through clock clk: migrate the count of orphaned clocks at init clk: call the clock init() callback before any other ops callback clk: fix mux clock documentation clk: divider: read-only divider can propagate rate change clk: qcom: use divider_ro_round_rate helper drivers/clk/clk-divider.c | 58 ++++++++++++++++++--------- drivers/clk/clk-mux.c | 75 ++++++++++++++++++++--------------- drivers/clk/clk.c | 63 ++++++++++++++++------------- drivers/clk/qcom/clk-regmap-divider.c | 20 +++------- include/linux/clk-provider.h | 23 ++++++++++- 5 files changed, 146 insertions(+), 93 deletions(-) -- 2.14.3