From: Arnd Bergmann <arnd@kernel.org>
To: linux-clk@vger.kernel.org, Stephen Boyd <sboyd@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>, Dmitry Osipenko <digetx@gmail.com>,
Florian Fainelli <florian@openwrt.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Greg Ungerer <gerg@linux-m68k.org>,
John Crispin <john@phrozen.org>,
Jonas Gorski <jonas.gorski@gmail.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
Michael Turquette <mturquette@baylibre.com>,
Russell King <linux@armlinux.org.uk>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [GIT PULL v2] clk: clean up legacy clock interfaces
Date: Tue, 8 Jun 2021 17:22:07 +0200 [thread overview]
Message-ID: <20210608152214.1231666-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
The following changes since commit 8124c8a6b35386f73523d27eacb71b5364a68c4c:
Linux 5.13-rc4 (2021-05-30 11:58:25 -1000)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/clkdev-cleanup
for you to fetch changes up to 84587cb0f9ed09b9b7f787276ef05beda4ae0ba8:
clkdev: remove unused clkdev_alloc() interfaces (2021-06-02 12:31:10 +0200)
---
clk: clean up legacy clock interfaces
A recent discussion about legacy clk interface users revealed
that there are only two platforms remaining that provide their own
clk_get()/clk_put() implementations, MIPS ar7 and and m68k coldfire.
I managed to rework both of these to just use the normal clkdev code,
and fold CONFIG_CLKDEV_LOOKUP into CONFIG_HAVE_CLK as it is now shared
among all users.
As I noticed that the ar7 clock implementation and the ralink version
are rather trivial, I ended up converting those to use the common-clk
interfaces as well, though this is unrelated to the other changes.
Link: https://lore.kernel.org/linux-clk/20210531184749.2475868-1-arnd@kernel.org/
Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
Stephen offered to merge these through the clk tree. I was waiting
for an Ack/Nack from the MIPS/ar7/ralink maintainers but got no further
reply, so sending this as a pull request now.
Please pull or apply, assuming there are no further concerns.
Arnd
Changes since v1:
- fix two typos on coldfire
- remove duplicate #include
- rebased to v5.13-rc1 to avoid backmerge
Arnd Bergmann (7):
mips: ar7: convert to clkdev_lookup
mips: ar7: convert to CONFIG_COMMON_CLK
mips: ralink: convert to CONFIG_COMMON_CLK
m68k: coldfire: use clkdev_lookup on most coldfire
m68k: coldfire: remove private clk_get/clk_put
clkdev: remove CONFIG_CLKDEV_LOOKUP
clkdev: remove unused clkdev_alloc() interfaces
arch/arm/Kconfig | 2 -
arch/m68k/coldfire/clk.c | 21 -----
arch/m68k/coldfire/m5206.c | 25 +++---
arch/m68k/coldfire/m520x.c | 51 +++++------
arch/m68k/coldfire/m523x.c | 42 ++++-----
arch/m68k/coldfire/m5249.c | 33 +++----
arch/m68k/coldfire/m525x.c | 33 +++----
arch/m68k/coldfire/m5272.c | 35 +++-----
arch/m68k/coldfire/m527x.c | 44 ++++------
arch/m68k/coldfire/m528x.c | 42 ++++-----
arch/m68k/coldfire/m5307.c | 27 +++---
arch/m68k/coldfire/m53xx.c | 78 ++++++++---------
arch/m68k/coldfire/m5407.c | 25 +++---
arch/m68k/coldfire/m5441x.c | 126 +++++++++++++--------------
arch/m68k/coldfire/m54xx.c | 33 +++----
arch/m68k/include/asm/mcfclk.h | 5 --
arch/mips/Kconfig | 6 +-
arch/mips/ar7/clock.c | 113 ++++++------------------
arch/mips/include/asm/mach-ar7/ar7.h | 4 -
arch/mips/pic32/Kconfig | 1 -
arch/mips/ralink/Kconfig | 5 --
arch/mips/ralink/clk.c | 64 +-------------
arch/sh/Kconfig | 1 -
drivers/clk/Kconfig | 6 +-
drivers/clk/Makefile | 3 +-
drivers/clk/clkdev.c | 28 ------
drivers/clocksource/Kconfig | 6 +-
drivers/mmc/host/Kconfig | 4 +-
drivers/staging/board/Kconfig | 2 +-
include/linux/clkdev.h | 5 --
sound/soc/dwc/Kconfig | 2 +-
sound/soc/rockchip/Kconfig | 14 +--
32 files changed, 318 insertions(+), 568 deletions(-)
--
2.29.2
Cc: Dmitry Osipenko <digetx@gmail.com>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@linux-m68k.org>
Cc: John Crispin <john@phrozen.org>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-clk@vger.kernel.org
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
next reply other threads:[~2021-06-08 15:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 15:22 Arnd Bergmann [this message]
2021-06-08 15:22 ` [PATCH v2 1/7] mips: ar7: convert to clkdev_lookup Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 2/7] mips: ar7: convert to CONFIG_COMMON_CLK Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 3/7] mips: ralink: " Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 4/7] m68k: coldfire: use clkdev_lookup on most coldfire Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 5/7] m68k: coldfire: remove private clk_get/clk_put Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 6/7] clkdev: remove CONFIG_CLKDEV_LOOKUP Arnd Bergmann
2021-06-08 15:22 ` [PATCH v2 7/7] clkdev: remove unused clkdev_alloc() interfaces Arnd Bergmann
2021-06-09 0:43 ` [GIT PULL v2] clk: clean up legacy clock interfaces Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210608152214.1231666-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=arnd@arndb.de \
--cc=digetx@gmail.com \
--cc=florian@openwrt.org \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=john@phrozen.org \
--cc=jonas.gorski@gmail.com \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).