Received: by 10.213.65.68 with SMTP id h4csp3864636imn; Tue, 10 Apr 2018 05:58:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/IteyEZAb6YDioxYyp11zstngXGAzK83Kc3heuY6Yt73HPjnnk03tigIGHVyXrl+xM3Efn X-Received: by 10.98.89.23 with SMTP id n23mr241995pfb.211.1523365107301; Tue, 10 Apr 2018 05:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523365107; cv=none; d=google.com; s=arc-20160816; b=kxgB/9fvwiDABUjO4oytzeZvwzyjS2rjcr8k3Ww3ONA2HlWaocHBKQ173qz8W9B9vS QqzrCJu2eMT22LeBhEiTRO8ky37GORDKEz5r55etUP+oMIC5EUXItR/Tehad5+3Q67FU 3vz/LbyNhrsKEfbnbRFcKwKs4xbtLjqlprHjc4eFkEGQas+GTRWkQD9RTfZE+WRRrPDK aEjKnB+ZrhdN4lj/Y6MQLOZAKcyleCH5Ic22PSlVfeNgLE1+LmVPnO2MbBFFCs0UzBdN j5SMunngxuaf/yA+emSWCwdFUGXoyE8aedVXiyaL5XXNabeX1ATWbcRJslP/jEML+pcE k3ZQ== 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 :arc-authentication-results; bh=SbWZ82AH1S68gZcPVFoVu8ajAvQGkdC6MYtgkn0q8FA=; b=eJBqBv3rv1CN8Q0gz8ehenkMx4cQEH7AkFnxU49V9UkW/vmV+58Jn9e+i+RjmCWMnk MTHi57Tm8nRHmSDxf3tQh/OZ/zE89aoHCI8JhPp9uLNpETAOi7UzSvMl7SP02/Of3bLO BxIpZZYIkz0Sf07xfzPMdbY8ox5uGJi9gDA5frosS/tshQE1ZX2bpMoCUGKfqZI80USn CJIp910bn3qIKcI43FTpuxGRWptoKkppffY7HpDpgUl5PCGupson/71LuYAD7TylgDtG sKBA4DqxteXFherNsvXD2bH0lvnm2ed7en4EKevUMMcd3BV4ea6Yt/m5fam2jNv8MlDW FSRg== 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 m39-v6si2687102plg.570.2018.04.10.05.57.50; Tue, 10 Apr 2018 05:58:27 -0700 (PDT) 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 S1753262AbeDJMwG (ORCPT + 99 others); Tue, 10 Apr 2018 08:52:06 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:53668 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958AbeDJMv4 (ORCPT ); Tue, 10 Apr 2018 08:51:56 -0400 Received: from ayla.of.borg ([84.194.111.163]) by laurent.telenet-ops.be with bizsmtp id Ycrj1x00e3XaVaC01crjph; Tue, 10 Apr 2018 14:51:55 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1f5skR-00054L-Mk; Tue, 10 Apr 2018 14:51:43 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1f5skR-00040w-L6; Tue, 10 Apr 2018 14:51:43 +0200 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Cc: Rob Herring , Frank Rowand , Daniel Lezcano , Thomas Gleixner , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Heiko Stuebner , Thierry Reding , Jonathan Hunter , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 0/5] Use of_clk_get_parent_count() instead of open coding Date: Tue, 10 Apr 2018 14:51:36 +0200 Message-Id: <1523364701-15383-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, Stephen, et al, This patch series replaces open-coded versions of of_clk_get_parent_count() by calls to the helper function. Changes compared to v1: - Move OF clock helpers (a.o. of_clk_get_parent_count()) to their own include file , as suggested by Stephen, - Update includes for the above change, - Fix timer-sp804, now a dummy is available in the !CONFIG_COMMON_CLK case, - Fix a new occurrence. Note that patches 2-5 depend on the first patch. To simplify dependencies, perhaps the first patch can still make it in v4.17-rc1? Thanks! Geert Uytterhoeven (5): clk: Extract OF clock helpers in ARM: timer-sp: Use of_clk_get_parent_count() instead of open coding soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding soc/tegra: pmc: Use of_clk_get_parent_count() instead of open coding pinctrl: sunxi: Use of_clk_get_parent_count() instead of open coding drivers/clocksource/timer-sp804.c | 3 ++- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 4 ++-- drivers/soc/rockchip/pm_domains.c | 4 ++-- drivers/soc/tegra/pmc.c | 3 ++- include/linux/clk-provider.h | 14 +------------- include/linux/of_clk.h | 29 +++++++++++++++++++++++++++++ 6 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 include/linux/of_clk.h -- 2.7.4 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds