* [PATCH 0/7] clk: clean up legacy clock interfaces
@ 2021-05-31 17:34 Arnd Bergmann
2021-05-31 18:44 ` Dmitry Osipenko
0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2021-05-31 17:34 UTC (permalink / raw)
To: linux-clk
Cc: Arnd Bergmann, Dmitry Osipenko, Florian Fainelli,
Geert Uytterhoeven, Greg Ungerer, John Crispin, Jonas Gorski,
Krzysztof Kozlowski, Michael Turquette, Russell King,
Stephen Boyd, Thomas Bogendoerfer, linux-m68k, linux-mips
From: Arnd Bergmann <arnd@arndb.de>
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.
Arnd
Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/
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 | 46 ++++------
arch/m68k/coldfire/m528x.c | 42 ++++-----
arch/m68k/coldfire/m5307.c | 27 +++---
arch/m68k/coldfire/m53xx.c | 80 ++++++++---------
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, 320 insertions(+), 570 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
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-05-31 17:34 [PATCH 0/7] clk: clean up legacy clock interfaces Arnd Bergmann
@ 2021-05-31 18:44 ` Dmitry Osipenko
2021-05-31 18:47 ` Arnd Bergmann
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Osipenko @ 2021-05-31 18:44 UTC (permalink / raw)
To: Arnd Bergmann, linux-clk
Cc: Arnd Bergmann, Florian Fainelli, Geert Uytterhoeven, Greg Ungerer,
John Crispin, Jonas Gorski, Krzysztof Kozlowski,
Michael Turquette, Russell King, Stephen Boyd,
Thomas Bogendoerfer, linux-m68k, linux-mips
31.05.2021 20:34, Arnd Bergmann пишет:
> From: Arnd Bergmann <arnd@arndb.de>
>
> 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.
>
> Arnd
>
> Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/
Awesome, thank you very much!
I see only this cover-letter email, will we see the rest of the patches?
The patches 1-7 have only linux-clk@vger.kernel.org in the recipients.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-05-31 18:44 ` Dmitry Osipenko
@ 2021-05-31 18:47 ` Arnd Bergmann
0 siblings, 0 replies; 9+ messages in thread
From: Arnd Bergmann @ 2021-05-31 18:47 UTC (permalink / raw)
To: Dmitry Osipenko
Cc: linux-clk, Florian Fainelli, Geert Uytterhoeven, Greg Ungerer,
John Crispin, Jonas Gorski, Krzysztof Kozlowski,
Michael Turquette, Russell King, Stephen Boyd,
Thomas Bogendoerfer, linux-m68k, linux-mips
On Mon, May 31, 2021 at 8:44 PM Dmitry Osipenko <digetx@gmail.com> wrote:
>
> Awesome, thank you very much!
>
> I see only this cover-letter email, will we see the rest of the patches?
> The patches 1-7 have only linux-clk@vger.kernel.org in the recipients.
Oops, I meant to send with --cc-cover, sorry about that, and sorry for the
coming duplicate mails on linux-clk@v.g.o.
Arnd
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/7] clk: clean up legacy clock interfaces
@ 2021-05-31 18:47 Arnd Bergmann
2021-06-01 9:51 ` Thomas Bogendoerfer
2021-06-01 12:02 ` Greg Ungerer
0 siblings, 2 replies; 9+ messages in thread
From: Arnd Bergmann @ 2021-05-31 18:47 UTC (permalink / raw)
To: linux-clk
Cc: Arnd Bergmann, Dmitry Osipenko, Florian Fainelli,
Geert Uytterhoeven, Greg Ungerer, John Crispin, Jonas Gorski,
Krzysztof Kozlowski, Michael Turquette, Russell King,
Stephen Boyd, Thomas Bogendoerfer, linux-m68k, linux-mips
From: Arnd Bergmann <arnd@arndb.de>
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.
Arnd
Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/
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 | 46 ++++------
arch/m68k/coldfire/m528x.c | 42 ++++-----
arch/m68k/coldfire/m5307.c | 27 +++---
arch/m68k/coldfire/m53xx.c | 80 ++++++++---------
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, 320 insertions(+), 570 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
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-05-31 18:47 Arnd Bergmann
@ 2021-06-01 9:51 ` Thomas Bogendoerfer
2021-06-01 12:24 ` Arnd Bergmann
2021-06-01 12:02 ` Greg Ungerer
1 sibling, 1 reply; 9+ messages in thread
From: Thomas Bogendoerfer @ 2021-06-01 9:51 UTC (permalink / raw)
To: Arnd Bergmann
Cc: linux-clk, Arnd Bergmann, Dmitry Osipenko, Florian Fainelli,
Geert Uytterhoeven, Greg Ungerer, John Crispin, Jonas Gorski,
Krzysztof Kozlowski, Michael Turquette, Russell King,
Stephen Boyd, linux-m68k, linux-mips
On Mon, May 31, 2021 at 08:47:42PM +0200, Arnd Bergmann wrote:
> 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.
excellent, how is your plan for merging the series ?
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-06-01 9:51 ` Thomas Bogendoerfer
@ 2021-06-01 12:24 ` Arnd Bergmann
2021-06-01 22:05 ` Stephen Boyd
0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2021-06-01 12:24 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: linux-clk, Dmitry Osipenko, Florian Fainelli, Geert Uytterhoeven,
Greg Ungerer, John Crispin, Jonas Gorski, Krzysztof Kozlowski,
Michael Turquette, Russell King, Stephen Boyd, linux-m68k,
open list:BROADCOM NVRAM DRIVER
On Tue, Jun 1, 2021 at 11:51 AM Thomas Bogendoerfer
<tsbogend@alpha.franken.de> wrote:
>
> On Mon, May 31, 2021 at 08:47:42PM +0200, Arnd Bergmann wrote:
> > 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.
>
> excellent, how is your plan for merging the series ?
I have not decided yet. I think it would be best to keep the series together
and merge it through the clk maintainer tree, or possibly my asm-generic
tree, but as there is no rush, we could also do the mips and m68k bits
through the architecture trees, and defer the rest for 5.15.
Arnd
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-06-01 12:24 ` Arnd Bergmann
@ 2021-06-01 22:05 ` Stephen Boyd
2021-06-02 10:37 ` Arnd Bergmann
0 siblings, 1 reply; 9+ messages in thread
From: Stephen Boyd @ 2021-06-01 22:05 UTC (permalink / raw)
To: Arnd Bergmann, Thomas Bogendoerfer
Cc: linux-clk, Dmitry Osipenko, Florian Fainelli, Geert Uytterhoeven,
Greg Ungerer, John Crispin, Jonas Gorski, Krzysztof Kozlowski,
Michael Turquette, Russell King, linux-m68k,
BROADCOM NVRAM DRIVER
Quoting Arnd Bergmann (2021-06-01 05:24:59)
> On Tue, Jun 1, 2021 at 11:51 AM Thomas Bogendoerfer
> <tsbogend@alpha.franken.de> wrote:
> >
> > On Mon, May 31, 2021 at 08:47:42PM +0200, Arnd Bergmann wrote:
> > > 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.
> >
> > excellent, how is your plan for merging the series ?
>
> I have not decided yet. I think it would be best to keep the series together
> and merge it through the clk maintainer tree, or possibly my asm-generic
> tree, but as there is no rush, we could also do the mips and m68k bits
> through the architecture trees, and defer the rest for 5.15.
>
I'm happy to take the series through clk tree if that helps.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-06-01 22:05 ` Stephen Boyd
@ 2021-06-02 10:37 ` Arnd Bergmann
0 siblings, 0 replies; 9+ messages in thread
From: Arnd Bergmann @ 2021-06-02 10:37 UTC (permalink / raw)
To: Stephen Boyd
Cc: Thomas Bogendoerfer, linux-clk, Dmitry Osipenko, Florian Fainelli,
Geert Uytterhoeven, Greg Ungerer, John Crispin, Jonas Gorski,
Krzysztof Kozlowski, Michael Turquette, Russell King, linux-m68k,
BROADCOM NVRAM DRIVER
On Wed, Jun 2, 2021 at 12:05 AM Stephen Boyd <sboyd@kernel.org> wrote:
> Quoting Arnd Bergmann (2021-06-01 05:24:59)
> > On Tue, Jun 1, 2021 at 11:51 AM Thomas Bogendoerfer
> > <tsbogend@alpha.franken.de> wrote:
> > >
> > > On Mon, May 31, 2021 at 08:47:42PM +0200, Arnd Bergmann wrote:
> > > > 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.
> > >
> > > excellent, how is your plan for merging the series ?
> >
> > I have not decided yet. I think it would be best to keep the series together
> > and merge it through the clk maintainer tree, or possibly my asm-generic
> > tree, but as there is no rush, we could also do the mips and m68k bits
> > through the architecture trees, and defer the rest for 5.15.
> >
>
> I'm happy to take the series through clk tree if that helps.
Ok, great. I've addressed all the issues that were pointed out, but it
would be good to get an Acked-by or some testing for the MIPS
(ar7 and ralink) bits. Thomas and John, let me know if you find
something that needs to be addressed first, or if you are happy
me to send the latest version for merging.
Arnd
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/7] clk: clean up legacy clock interfaces
2021-05-31 18:47 Arnd Bergmann
2021-06-01 9:51 ` Thomas Bogendoerfer
@ 2021-06-01 12:02 ` Greg Ungerer
1 sibling, 0 replies; 9+ messages in thread
From: Greg Ungerer @ 2021-06-01 12:02 UTC (permalink / raw)
To: Arnd Bergmann, linux-clk
Cc: Arnd Bergmann, Dmitry Osipenko, Florian Fainelli,
Geert Uytterhoeven, John Crispin, Jonas Gorski,
Krzysztof Kozlowski, Michael Turquette, Russell King,
Stephen Boyd, Thomas Bogendoerfer, linux-m68k, linux-mips
Hi Arnd,
On 1/6/21 4:47 am, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> 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.
>
> Arnd
>
> Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/
>
> 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 | 46 ++++------
> arch/m68k/coldfire/m528x.c | 42 ++++-----
> arch/m68k/coldfire/m5307.c | 27 +++---
> arch/m68k/coldfire/m53xx.c | 80 ++++++++---------
> 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, 320 insertions(+), 570 deletions(-)
Looks really good, thanks for doing this.
I have test compiled and run some of the ColdFire targets with these changes.
Everything checked out good. So for the m68k/Coldfire parts (with the one
munged writew() change fixed):
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
Regards
Greg
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-06-02 10:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-31 17:34 [PATCH 0/7] clk: clean up legacy clock interfaces Arnd Bergmann
2021-05-31 18:44 ` Dmitry Osipenko
2021-05-31 18:47 ` Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2021-05-31 18:47 Arnd Bergmann
2021-06-01 9:51 ` Thomas Bogendoerfer
2021-06-01 12:24 ` Arnd Bergmann
2021-06-01 22:05 ` Stephen Boyd
2021-06-02 10:37 ` Arnd Bergmann
2021-06-01 12:02 ` Greg Ungerer
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).