mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function
@ 2023-03-07 12:43 Fabio Estevam
  2023-03-28 10:33 ` Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabio Estevam @ 2023-03-07 12:43 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: shawnguo, linux-imx, kernel, linux-kernel, linux-arm-kernel,
	Fabio Estevam

mxc_timer_init() was originally only used by non-DT i.MX platforms.

i.MX has already been converted to be a DT-only platform.

Remove the unused mxc_timer_init() function.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/clocksource/timer-imx-gpt.c | 19 -------------------
 include/soc/imx/timer.h             |  7 -------
 2 files changed, 26 deletions(-)

diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 7b2c70f2f353..ca3e4cbc80c6 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -420,25 +420,6 @@ static int __init _mxc_timer_init(struct imx_timer *imxtm)
 	return mxc_clockevent_init(imxtm);
 }
 
-void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
-{
-	struct imx_timer *imxtm;
-
-	imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL);
-	BUG_ON(!imxtm);
-
-	imxtm->clk_per = clk_get_sys("imx-gpt.0", "per");
-	imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg");
-
-	imxtm->base = ioremap(pbase, SZ_4K);
-	BUG_ON(!imxtm->base);
-
-	imxtm->type = type;
-	imxtm->irq = irq;
-
-	_mxc_timer_init(imxtm);
-}
-
 static int __init mxc_timer_init_dt(struct device_node *np,  enum imx_gpt_type type)
 {
 	struct imx_timer *imxtm;
diff --git a/include/soc/imx/timer.h b/include/soc/imx/timer.h
index b888d5076b4d..25f29c6bbd0b 100644
--- a/include/soc/imx/timer.h
+++ b/include/soc/imx/timer.h
@@ -13,11 +13,4 @@ enum imx_gpt_type {
 	GPT_TYPE_IMX6DL,	/* i.MX6DL/SX/SL */
 };
 
-/*
- * This is a stop-gap solution for clock drivers like imx1/imx21 which call
- * mxc_timer_init() to initialize timer for non-DT boot.  It can be removed
- * when these legacy non-DT support is converted or dropped.
- */
-void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
-
 #endif  /* __SOC_IMX_TIMER_H__ */
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function
  2023-03-07 12:43 [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function Fabio Estevam
@ 2023-03-28 10:33 ` Uwe Kleine-König
  2023-04-06 13:42 ` Daniel Lezcano
  2023-04-26  9:12 ` [tip: timers/core] " tip-bot2 for Fabio Estevam
  2 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2023-03-28 10:33 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: daniel.lezcano, linux-kernel, linux-imx, kernel, shawnguo,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

On Tue, Mar 07, 2023 at 09:43:13AM -0300, Fabio Estevam wrote:
> mxc_timer_init() was originally only used by non-DT i.MX platforms.
> 
> i.MX has already been converted to be a DT-only platform.
> 
> Remove the unused mxc_timer_init() function.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Actually I created the same patch and have another patch that depends on
this one. See
https://lore.kernel.org/linux-arm-kernel/20230328100531.879485-1-u.kleine-koenig@pengutronix.de/#t
.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function
  2023-03-07 12:43 [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function Fabio Estevam
  2023-03-28 10:33 ` Uwe Kleine-König
@ 2023-04-06 13:42 ` Daniel Lezcano
  2023-04-26  9:12 ` [tip: timers/core] " tip-bot2 for Fabio Estevam
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2023-04-06 13:42 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: shawnguo, linux-imx, kernel, linux-kernel, linux-arm-kernel

On 07/03/2023 13:43, Fabio Estevam wrote:
> mxc_timer_init() was originally only used by non-DT i.MX platforms.
> 
> i.MX has already been converted to be a DT-only platform.
> 
> Remove the unused mxc_timer_init() function.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tip: timers/core] clocksource/drivers/timer-imx-gpt: Remove non-DT function
  2023-03-07 12:43 [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function Fabio Estevam
  2023-03-28 10:33 ` Uwe Kleine-König
  2023-04-06 13:42 ` Daniel Lezcano
@ 2023-04-26  9:12 ` tip-bot2 for Fabio Estevam
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Fabio Estevam @ 2023-04-26  9:12 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Fabio Estevam, u.kleine-koenig, Daniel Lezcano, x86, linux-kernel

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     f68a40ee4732731f149961abab27a45b6c11f413
Gitweb:        https://git.kernel.org/tip/f68a40ee4732731f149961abab27a45b6c11f413
Author:        Fabio Estevam <festevam@denx.de>
AuthorDate:    Tue, 07 Mar 2023 09:43:13 -03:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Mon, 24 Apr 2023 16:56:13 +02:00

clocksource/drivers/timer-imx-gpt: Remove non-DT function

mxc_timer_init() was originally only used by non-DT i.MX platforms.

i.MX has already been converted to be a DT-only platform.

Remove the unused mxc_timer_init() function.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230307124313.708255-1-festevam@denx.de
---
 drivers/clocksource/timer-imx-gpt.c | 19 -------------------
 include/soc/imx/timer.h             |  7 -------
 2 files changed, 26 deletions(-)

diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 7b2c70f..ca3e4cb 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -420,25 +420,6 @@ static int __init _mxc_timer_init(struct imx_timer *imxtm)
 	return mxc_clockevent_init(imxtm);
 }
 
-void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
-{
-	struct imx_timer *imxtm;
-
-	imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL);
-	BUG_ON(!imxtm);
-
-	imxtm->clk_per = clk_get_sys("imx-gpt.0", "per");
-	imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg");
-
-	imxtm->base = ioremap(pbase, SZ_4K);
-	BUG_ON(!imxtm->base);
-
-	imxtm->type = type;
-	imxtm->irq = irq;
-
-	_mxc_timer_init(imxtm);
-}
-
 static int __init mxc_timer_init_dt(struct device_node *np,  enum imx_gpt_type type)
 {
 	struct imx_timer *imxtm;
diff --git a/include/soc/imx/timer.h b/include/soc/imx/timer.h
index b888d50..25f29c6 100644
--- a/include/soc/imx/timer.h
+++ b/include/soc/imx/timer.h
@@ -13,11 +13,4 @@ enum imx_gpt_type {
 	GPT_TYPE_IMX6DL,	/* i.MX6DL/SX/SL */
 };
 
-/*
- * This is a stop-gap solution for clock drivers like imx1/imx21 which call
- * mxc_timer_init() to initialize timer for non-DT boot.  It can be removed
- * when these legacy non-DT support is converted or dropped.
- */
-void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
-
 #endif  /* __SOC_IMX_TIMER_H__ */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-26  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 12:43 [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function Fabio Estevam
2023-03-28 10:33 ` Uwe Kleine-König
2023-04-06 13:42 ` Daniel Lezcano
2023-04-26  9:12 ` [tip: timers/core] " tip-bot2 for Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®