linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] ARM: OMAP: replace setup_irq() by request_irq()
@ 2020-03-01 12:19 afzal mohammed
  2020-03-04 16:34 ` Tony Lindgren
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:19 UTC (permalink / raw)
  To: Viresh Kumar, Kevin Hilman, Aaro Koskinen, Tony Lindgren,
	Russell King, linux-omap, linux-arm-kernel, linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also create subarch level patch as Thomas
	suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-omap1/pm.c       | 13 ++++++-------
 arch/arm/mach-omap1/time.c     | 10 +++-------
 arch/arm/mach-omap1/timer32k.c | 10 +++-------
 arch/arm/mach-omap2/timer.c    | 11 +++--------
 4 files changed, 15 insertions(+), 29 deletions(-)

diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
index d068958d6f8a..2c1e2b32b9b3 100644
--- a/arch/arm/mach-omap1/pm.c
+++ b/arch/arm/mach-omap1/pm.c
@@ -596,11 +596,6 @@ static irqreturn_t omap_wakeup_interrupt(int irq, void *dev)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction omap_wakeup_irq = {
-	.name		= "peripheral wakeup",
-	.handler	= omap_wakeup_interrupt
-};
-
 
 
 static const struct platform_suspend_ops omap_pm_ops = {
@@ -613,6 +608,7 @@ static const struct platform_suspend_ops omap_pm_ops = {
 static int __init omap_pm_init(void)
 {
 	int error = 0;
+	int irq;
 
 	if (!cpu_class_is_omap1())
 		return -ENODEV;
@@ -656,9 +652,12 @@ static int __init omap_pm_init(void)
 	arm_pm_idle = omap1_pm_idle;
 
 	if (cpu_is_omap7xx())
-		setup_irq(INT_7XX_WAKE_UP_REQ, &omap_wakeup_irq);
+		irq = INT_7XX_WAKE_UP_REQ;
 	else if (cpu_is_omap16xx())
-		setup_irq(INT_1610_WAKE_UP_REQ, &omap_wakeup_irq);
+		irq = INT_1610_WAKE_UP_REQ;
+	if (request_irq(irq, omap_wakeup_interrupt, 0, "peripheral wakeup",
+			NULL))
+		pr_err("Failed to request irq %d (peripheral wakeup)\n", irq);
 
 	/* Program new power ramp-up time
 	 * (0 for most boards since we don't lower voltage when in deep sleep)
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
index 524977a31a49..de590a85a42b 100644
--- a/arch/arm/mach-omap1/time.c
+++ b/arch/arm/mach-omap1/time.c
@@ -155,15 +155,11 @@ static irqreturn_t omap_mpu_timer1_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction omap_mpu_timer1_irq = {
-	.name		= "mpu_timer1",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= omap_mpu_timer1_interrupt,
-};
-
 static __init void omap_init_mpu_timer(unsigned long rate)
 {
-	setup_irq(INT_TIMER1, &omap_mpu_timer1_irq);
+	if (request_irq(INT_TIMER1, omap_mpu_timer1_interrupt,
+			IRQF_TIMER | IRQF_IRQPOLL, "mpu_timer1", NULL))
+		pr_err("Failed to request irq %d (mpu_timer1)\n", INT_TIMER1);
 	omap_mpu_timer_start(0, (rate / HZ) - 1, 1);
 
 	clockevent_mpu_timer1.cpumask = cpumask_of(0);
diff --git a/arch/arm/mach-omap1/timer32k.c b/arch/arm/mach-omap1/timer32k.c
index 0ae6c52a7d70..780fdf03c3ce 100644
--- a/arch/arm/mach-omap1/timer32k.c
+++ b/arch/arm/mach-omap1/timer32k.c
@@ -148,15 +148,11 @@ static irqreturn_t omap_32k_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction omap_32k_timer_irq = {
-	.name		= "32KHz timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= omap_32k_timer_interrupt,
-};
-
 static __init void omap_init_32k_timer(void)
 {
-	setup_irq(INT_OS_TIMER, &omap_32k_timer_irq);
+	if (request_irq(INT_OS_TIMER, omap_32k_timer_interrupt,
+			IRQF_TIMER | IRQF_IRQPOLL, "32KHz timer", NULL))
+		pr_err("Failed to request irq %d(32KHz timer)\n", INT_OS_TIMER);
 
 	clockevent_32k_timer.cpumask = cpumask_of(0);
 	clockevents_config_and_register(&clockevent_32k_timer,
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 0d0a731cb476..8b09cdacc30d 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -91,12 +91,6 @@ static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction omap2_gp_timer_irq = {
-	.name		= "gp_timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= omap2_gp_timer_interrupt,
-};
-
 static int omap2_gp_timer_set_next_event(unsigned long cycles,
 					 struct clock_event_device *evt)
 {
@@ -382,8 +376,9 @@ static void __init omap2_gp_clockevent_init(int gptimer_id,
 				     &clockevent_gpt.name, OMAP_TIMER_POSTED);
 	BUG_ON(res);
 
-	omap2_gp_timer_irq.dev_id = &clkev;
-	setup_irq(clkev.irq, &omap2_gp_timer_irq);
+	if (request_irq(clkev.irq, omap2_gp_timer_interrupt,
+			IRQF_TIMER | IRQF_IRQPOLL, "gp_timer", &clkev))
+		pr_err("Failed to request irq %d (gp_timer)\n", clkev.irq);
 
 	__omap_dm_timer_int_enable(&clkev, OMAP_TIMER_INT_OVERFLOW);
 
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3] ARM: ep93xx: Replace setup_irq() by request_irq()
@ 2020-03-01 12:21 afzal mohammed
  2020-03-01 16:21 ` Alexander Sverdlin
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:21 UTC (permalink / raw)
  To: Viresh Kumar, Hartley Sweeten, Alexander Sverdlin, Russell King,
	linux-arm-kernel, linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also create subarch level patch as Thomas
	suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-ep93xx/timer-ep93xx.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-ep93xx/timer-ep93xx.c b/arch/arm/mach-ep93xx/timer-ep93xx.c
index de998830f534..dd4b164d1831 100644
--- a/arch/arm/mach-ep93xx/timer-ep93xx.c
+++ b/arch/arm/mach-ep93xx/timer-ep93xx.c
@@ -117,15 +117,11 @@ static irqreturn_t ep93xx_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction ep93xx_timer_irq = {
-	.name		= "ep93xx timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= ep93xx_timer_interrupt,
-	.dev_id		= &ep93xx_clockevent,
-};
-
 void __init ep93xx_timer_init(void)
 {
+	int irq = IRQ_EP93XX_TIMER3;
+	unsigned long flags = IRQF_TIMER | IRQF_IRQPOLL;
+
 	/* Enable and register clocksource and sched_clock on timer 4 */
 	writel(EP93XX_TIMER4_VALUE_HIGH_ENABLE,
 	       EP93XX_TIMER4_VALUE_HIGH);
@@ -136,7 +132,9 @@ void __init ep93xx_timer_init(void)
 			     EP93XX_TIMER4_RATE);
 
 	/* Set up clockevent on timer 3 */
-	setup_irq(IRQ_EP93XX_TIMER3, &ep93xx_timer_irq);
+	if (request_irq(irq, ep93xx_timer_interrupt, flags, "ep93xx timer",
+			&ep93xx_clockevent))
+		pr_err("Failed to request irq %d (ep93xx timer)\n", irq);
 	clockevents_config_and_register(&ep93xx_clockevent,
 					EP93XX_TIMER123_RATE,
 					1,
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3] ARM: iop32x: replace setup_irq() by request_irq()
@ 2020-03-01 12:22     ` afzal mohammed
  0 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:22 UTC (permalink / raw)
  To: Viresh Kumar, Russell King, Arnd Bergmann, Thomas Gleixner,
	Greg Kroah-Hartman, Allison Randal, linux-arm-kernel,
	linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-iop32x/time.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-iop32x/time.c b/arch/arm/mach-iop32x/time.c
index 18a4df5c1baa..ae533b66fefd 100644
--- a/arch/arm/mach-iop32x/time.c
+++ b/arch/arm/mach-iop32x/time.c
@@ -137,13 +137,6 @@ iop_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction iop_timer_irq = {
-	.name		= "IOP Timer Tick",
-	.handler	= iop_timer_interrupt,
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.dev_id		= &iop_clockevent,
-};
-
 static unsigned long iop_tick_rate;
 unsigned long get_iop_tick_rate(void)
 {
@@ -154,6 +147,7 @@ EXPORT_SYMBOL(get_iop_tick_rate);
 void __init iop_init_time(unsigned long tick_rate)
 {
 	u32 timer_ctl;
+	int irq = IRQ_IOP32X_TIMER0;
 
 	sched_clock_register(iop_read_sched_clock, 32, tick_rate);
 
@@ -168,7 +162,9 @@ void __init iop_init_time(unsigned long tick_rate)
 	 */
 	write_tmr0(timer_ctl & ~IOP_TMR_EN);
 	write_tisr(1);
-	setup_irq(IRQ_IOP32X_TIMER0, &iop_timer_irq);
+	if (request_irq(irq, iop_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
+			"IOP Timer Tick", &iop_clockevent))
+		pr_err("Failed to request irq() %d (IOP Timer Tick)\n", irq);
 	iop_clockevent.cpumask = cpumask_of(0);
 	clockevents_config_and_register(&iop_clockevent, tick_rate,
 					0xf, 0xfffffffe);
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3] ARM: mmp: replace setup_irq() by request_irq()
@ 2020-03-01 12:22 afzal mohammed
  2020-03-08 14:53 ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:22 UTC (permalink / raw)
  To: Viresh Kumar, Lubomir Rintel, Russell King, Greg Kroah-Hartman,
	Enrico Weigelt, Kate Stewart, Thomas Gleixner, linux-arm-kernel,
	linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-mmp/time.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-mmp/time.c b/arch/arm/mach-mmp/time.c
index c65cfc1ad99b..049a65f47b42 100644
--- a/arch/arm/mach-mmp/time.c
+++ b/arch/arm/mach-mmp/time.c
@@ -175,13 +175,6 @@ static void __init timer_config(void)
 	__raw_writel(0x2, mmp_timer_base + TMR_CER);
 }
 
-static struct irqaction timer_irq = {
-	.name		= "timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= timer_interrupt,
-	.dev_id		= &ckevt,
-};
-
 void __init mmp_timer_init(int irq, unsigned long rate)
 {
 	timer_config();
@@ -190,7 +183,9 @@ void __init mmp_timer_init(int irq, unsigned long rate)
 
 	ckevt.cpumask = cpumask_of(0);
 
-	setup_irq(irq, &timer_irq);
+	if (request_irq(irq, timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
+			"timer", &ckevt))
+		pr_err("Failed to request irq %d (timer)\n", irq);
 
 	clocksource_register_hz(&cksrc, rate);
 	clockevents_config_and_register(&ckevt, rate, MIN_DELTA, MAX_DELTA);
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3] ARM: spear: replace setup_irq() by request_irq()
@ 2020-03-01 12:23 afzal mohammed
  2020-03-02  3:17 ` Viresh Kumar
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:23 UTC (permalink / raw)
  To: Viresh Kumar, Viresh Kumar, Shiraz Hashim, Russell King,
	linux-arm-kernel, linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-spear/time.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-spear/time.c b/arch/arm/mach-spear/time.c
index 289e036c9c30..d1fdb6066f7b 100644
--- a/arch/arm/mach-spear/time.c
+++ b/arch/arm/mach-spear/time.c
@@ -181,12 +181,6 @@ static irqreturn_t spear_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction spear_timer_irq = {
-	.name = "timer",
-	.flags = IRQF_TIMER,
-	.handler = spear_timer_interrupt
-};
-
 static void __init spear_clockevent_init(int irq)
 {
 	u32 tick_rate;
@@ -201,7 +195,8 @@ static void __init spear_clockevent_init(int irq)
 
 	clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0);
 
-	setup_irq(irq, &spear_timer_irq);
+	if (request_irq(irq, spear_timer_interrupt, IRQF_TIMER, "timer", NULL))
+		pr_err("Failed to request irq %d (timer)\n", irq);
 }
 
 static const struct of_device_id timer_of_match[] __initconst = {
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v3] ARM: orion: replace setup_irq() by request_irq()
@ 2020-03-01 12:23 afzal mohammed
  2020-03-01 15:44 ` Andrew Lunn
  2020-03-13 20:39 ` Gregory CLEMENT
  0 siblings, 2 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-01 12:23 UTC (permalink / raw)
  To: Viresh Kumar, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Russell King, linux-arm-kernel, linux-kernel
  Cc: afzal mohammed

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---
Hi sub-arch maintainers,

If the patch is okay, please take it thr' your tree.

Regards
afzal

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/plat-orion/time.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/arm/plat-orion/time.c b/arch/arm/plat-orion/time.c
index ffb93db68e9c..509d4824dc1c 100644
--- a/arch/arm/plat-orion/time.c
+++ b/arch/arm/plat-orion/time.c
@@ -177,12 +177,6 @@ static irqreturn_t orion_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction orion_timer_irq = {
-	.name		= "orion_tick",
-	.flags		= IRQF_TIMER,
-	.handler	= orion_timer_interrupt
-};
-
 void __init
 orion_time_set_base(void __iomem *_timer_base)
 {
@@ -236,7 +230,9 @@ orion_time_init(void __iomem *_bridge_base, u32 _bridge_timer1_clr_mask,
 	/*
 	 * Setup clockevent timer (interrupt-driven).
 	 */
-	setup_irq(irq, &orion_timer_irq);
+	if (request_irq(irq, orion_timer_interrupt, IRQF_TIMER, "orion_tick",
+			NULL))
+		pr_err("Failed to request irq %u (orion_tick)\n", irq);
 	orion_clkevt.cpumask = cpumask_of(0);
 	clockevents_config_and_register(&orion_clkevt, tclk, 1, 0xfffffffe);
 }
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: orion: replace setup_irq() by request_irq()
  2020-03-01 12:23 [PATCH v3] ARM: orion: " afzal mohammed
@ 2020-03-01 15:44 ` Andrew Lunn
  2020-03-08 14:37   ` afzal mohammed
  2020-03-13 20:39 ` Gregory CLEMENT
  1 sibling, 1 reply; 29+ messages in thread
From: Andrew Lunn @ 2020-03-01 15:44 UTC (permalink / raw)
  To: afzal mohammed
  Cc: Jason Cooper, Viresh Kumar, Gregory Clement, Russell King,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

On Sun, Mar 01, 2020 at 05:53:30PM +0530, afzal mohammed wrote:
> request_irq() is preferred over setup_irq(). Invocations of setup_irq()
> occur after memory allocators are ready.
> 
> Per tglx[1], setup_irq() existed in olden days when allocators were not
> ready by the time early interrupts were initialized.
> 
> Hence replace setup_irq() by request_irq().
> 
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
> 
> Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: ep93xx: Replace setup_irq() by request_irq()
  2020-03-01 12:21 [PATCH v3] ARM: ep93xx: Replace " afzal mohammed
@ 2020-03-01 16:21 ` Alexander Sverdlin
  0 siblings, 0 replies; 29+ messages in thread
From: Alexander Sverdlin @ 2020-03-01 16:21 UTC (permalink / raw)
  To: afzal mohammed, Viresh Kumar, Hartley Sweeten, Russell King,
	linux-arm-kernel, linux-kernel, Arnd Bergmann

Hi Afzal, Arnd,

as there is no dedicated tree for EP93xx, could you please
consider the below patch for your arm-soc tree?

On 01/03/2020 13:21, afzal mohammed wrote:
> request_irq() is preferred over setup_irq(). Invocations of setup_irq()
> occur after memory allocators are ready.
> 
> Per tglx[1], setup_irq() existed in olden days when allocators were not
> ready by the time early interrupts were initialized.
> 
> Hence replace setup_irq() by request_irq().
> 
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
> 
> Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>

Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>

> ---
> Hi sub-arch maintainers,
> 
> If the patch is okay, please take it thr' your tree.
> 
> Regards
> afzal
> 
> v3:
>  * Split out from series, also create subarch level patch as Thomas
> 	suggested to take it thr' respective maintainers
>  * Modify string displayed in case of error as suggested by Thomas
>  * Re-arrange code as required to improve readability
>  * Remove irrelevant parts from commit message & improve
>  
> v2:
>  * Replace pr_err("request_irq() on %s failed" by
>            pr_err("%s: request_irq() failed"
>  * Commit message massage
> 
>  arch/arm/mach-ep93xx/timer-ep93xx.c | 14 ++++++--------
>  1 file changed, 6 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/mach-ep93xx/timer-ep93xx.c b/arch/arm/mach-ep93xx/timer-ep93xx.c
> index de998830f534..dd4b164d1831 100644
> --- a/arch/arm/mach-ep93xx/timer-ep93xx.c
> +++ b/arch/arm/mach-ep93xx/timer-ep93xx.c
> @@ -117,15 +117,11 @@ static irqreturn_t ep93xx_timer_interrupt(int irq, void *dev_id)
>  	return IRQ_HANDLED;
>  }
>  
> -static struct irqaction ep93xx_timer_irq = {
> -	.name		= "ep93xx timer",
> -	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
> -	.handler	= ep93xx_timer_interrupt,
> -	.dev_id		= &ep93xx_clockevent,
> -};
> -
>  void __init ep93xx_timer_init(void)
>  {
> +	int irq = IRQ_EP93XX_TIMER3;
> +	unsigned long flags = IRQF_TIMER | IRQF_IRQPOLL;
> +
>  	/* Enable and register clocksource and sched_clock on timer 4 */
>  	writel(EP93XX_TIMER4_VALUE_HIGH_ENABLE,
>  	       EP93XX_TIMER4_VALUE_HIGH);
> @@ -136,7 +132,9 @@ void __init ep93xx_timer_init(void)
>  			     EP93XX_TIMER4_RATE);
>  
>  	/* Set up clockevent on timer 3 */
> -	setup_irq(IRQ_EP93XX_TIMER3, &ep93xx_timer_irq);
> +	if (request_irq(irq, ep93xx_timer_interrupt, flags, "ep93xx timer",
> +			&ep93xx_clockevent))
> +		pr_err("Failed to request irq %d (ep93xx timer)\n", irq);
>  	clockevents_config_and_register(&ep93xx_clockevent,
>  					EP93XX_TIMER123_RATE,
>  					1,
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: spear: replace setup_irq() by request_irq()
  2020-03-01 12:23 [PATCH v3] ARM: spear: " afzal mohammed
@ 2020-03-02  3:17 ` Viresh Kumar
  0 siblings, 0 replies; 29+ messages in thread
From: Viresh Kumar @ 2020-03-02  3:17 UTC (permalink / raw)
  To: afzal mohammed
  Cc: Viresh Kumar, Shiraz Hashim, Russell King, linux-arm-kernel,
	linux-kernel

On 01-03-20, 17:53, afzal mohammed wrote:
> request_irq() is preferred over setup_irq(). Invocations of setup_irq()
> occur after memory allocators are ready.
> 
> Per tglx[1], setup_irq() existed in olden days when allocators were not
> ready by the time early interrupts were initialized.
> 
> Hence replace setup_irq() by request_irq().
> 
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
> 
> Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>

I think I had already Acked it earlier.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Please get this through Arnd directly.
-- 
viresh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: OMAP: replace setup_irq() by request_irq()
  2020-03-01 12:19 [PATCH v3] ARM: OMAP: replace setup_irq() by request_irq() afzal mohammed
@ 2020-03-04 16:34 ` Tony Lindgren
  2020-03-13 15:45   ` [PATCH v3] ARM: " afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: Tony Lindgren @ 2020-03-04 16:34 UTC (permalink / raw)
  To: afzal mohammed
  Cc: Aaro Koskinen, Viresh Kumar, Kevin Hilman, Russell King,
	linux-kernel, linux-omap, linux-arm-kernel

* afzal mohammed <afzal.mohd.ma@gmail.com> [200301 04:20]:
> request_irq() is preferred over setup_irq(). Invocations of setup_irq()
> occur after memory allocators are ready.
> 
> Per tglx[1], setup_irq() existed in olden days when allocators were not
> ready by the time early interrupts were initialized.
> 
> Hence replace setup_irq() by request_irq().
> 
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
> 
> Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
> ---
> Hi sub-arch maintainers,
> 
> If the patch is okay, please take it thr' your tree.

Thanks applied into omap-for-v5.7/omap1.

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: orion: replace setup_irq() by request_irq()
  2020-03-01 15:44 ` Andrew Lunn
@ 2020-03-08 14:37   ` afzal mohammed
  2020-03-09 16:17     ` Gregory CLEMENT
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-08 14:37 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Jason Cooper, Viresh Kumar, Gregory Clement, Russell King,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

Hi Andrew, Jason, Sebastian, Gregory,

Please let me know the way upstream for this patch

On Sun, Mar 01, 2020 at 04:44:35PM +0100, Andrew Lunn wrote:

> Reviewed-by: Andrew Lunn <andrew@lunn.ch>

Thanks Andrew

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: mmp: replace setup_irq() by request_irq()
  2020-03-01 12:22 [PATCH v3] ARM: mmp: replace " afzal mohammed
@ 2020-03-08 14:53 ` afzal mohammed
       [not found]   ` <20200308161903.GA156645@furthur.local>
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-08 14:53 UTC (permalink / raw)
  To: Viresh Kumar, Lubomir Rintel, Russell King, Greg Kroah-Hartman,
	Enrico Weigelt, Kate Stewart, Thomas Gleixner, linux-arm-kernel,
	linux-kernel

Hi Lubomir,

On Sun, Mar 01, 2020 at 05:52:41PM +0530, afzal mohammed wrote:

> Hi sub-arch maintainers,
> 
> If the patch is okay, please take it thr' your tree.

get_maintainers doesn't show any maintainers for mmp, but it specifies
you as the sole reviewer, please let me know the route upstream for this
patch.

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: mmp: replace setup_irq() by request_irq()
       [not found]   ` <20200308161903.GA156645@furthur.local>
  2020-03-01 12:22     ` [PATCH v3] ARM: iop32x: " afzal mohammed
@ 2020-03-09 12:19     ` afzal mohammed
  1 sibling, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-09 12:19 UTC (permalink / raw)
  To: Lubomir Rintel
  Cc: Kate Stewart, Viresh Kumar, Russell King, linux-kernel,
	Greg Kroah-Hartman, Olof Johansson, Thomas Gleixner,
	Enrico Weigelt, linux-arm-kernel

Hi Lubo,

On Sun, Mar 08, 2020 at 05:19:03PM +0100, Lubomir Rintel wrote:

> It has been
> Acked-by: Lubomir Rintel <lkundrak@v3.sk>
> Tested-by: Lubomir Rintel <lkundrak@v3.sk>

Thanks

> (afzal; I believe I've responded with the Tested-by before; please don't
> forget collect those when resubmitting patches in future. Thanks!)

The reason was a few minor changes in v3 vs v2, as that was the case i
was unsure whether to keep it or not, so went conservative & removed it.

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: orion: replace setup_irq() by request_irq()
  2020-03-08 14:37   ` afzal mohammed
@ 2020-03-09 16:17     ` Gregory CLEMENT
  0 siblings, 0 replies; 29+ messages in thread
From: Gregory CLEMENT @ 2020-03-09 16:17 UTC (permalink / raw)
  To: afzal mohammed, Andrew Lunn
  Cc: Jason Cooper, Viresh Kumar, Russell King, linux-kernel,
	linux-arm-kernel, Sebastian Hesselbarth

Hello afzal mohammed,

> Hi Andrew, Jason, Sebastian, Gregory,
>
> Please let me know the way upstream for this patch

I am taking care of it.

Gregory

>
> On Sun, Mar 01, 2020 at 04:44:35PM +0100, Andrew Lunn wrote:
>
>> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> Thanks Andrew
>
> Regards
> afzal

-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-04 16:34 ` Tony Lindgren
@ 2020-03-13 15:45   ` afzal mohammed
  2020-03-17  4:37     ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-13 15:45 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, Krzysztof Hałasa, Viresh Kumar,
	Thomas Gleixner, Alexander Sverdlin, Shiraz Hashim,
	linux-arm-kernel, Sebastian Hesselbarth

Hi Olof, Arnd,

This is regarding cleanup of setup_irq() usages & replacing it w/
request_irq(). Earlier it was sent as single series spanning all
architectures & drivers, later Thomas Gleixner suggested [1] to take it
thr' relevant maintainers. As for ARM, there is an additional layer of
sub-architecture maintainers, for ARM, patches were sent to relevant
subsystem maintainers & mailing list, all copied to LAKML as well.

There were 10 sub-arch's in ARM that were subjected to the cleanup,

1. OMAP :https://lkml.kernel.org/r/20200301121945.3604-1-afzal.mohd.ma@gmail.com
2. ebsa110 :https://lkml.kernel.org/r/20200301122210.4013-1-afzal.mohd.ma@gmail.com
3. rpc :https://lkml.kernel.org/r/20200301122300.4185-1-afzal.mohd.ma@gmail.com
4. footbridge :https://lkml.kernel.org/r/20200301122131.3902-1-afzal.mohd.ma@gmail.com
5. orion :https://lkml.kernel.org/r/20200301122330.4296-1-afzal.mohd.ma@gmail.com
6. ep93xx :https://lkml.kernel.org/r/20200301122112.3847-1-afzal.mohd.ma@gmail.com
7. spear :https://lkml.kernel.org/r/20200301122315.4240-1-afzal.mohd.ma@gmail.com
8. cns3xxx :https://lkml.kernel.org/r/20200301122155.3957-1-afzal.mohd.ma@gmail.com
9. mmp :https://lkml.kernel.org/r/20200301122243.4129-1-afzal.mohd.ma@gmail.com
10. iop32x :https://lkml.kernel.org/r/20200301122226.4068-1-afzal.mohd.ma@gmail.com

Of this,

(1) OMAP, (2) ebsa110 & (3) rpc are already in linux-next.

(4) footbridge (Russell) - there was a build warning, so he dropped
after applying to his tree, i have submitted the newer fixed version in
his patch system.

(5) orion - Andrew has given Reviewed-by & Gregory mentioned that he will
take care of it.

So if things goes as expected 1 & 5 will be coming to you thr' sub-arch
maintainers, while 2-4 directly via Russell

Now we are left with five (6-10),
(6) ep93xx - Alexander has given Acked-by & mentioned to take thr' Arnd
(7) spear - Viresh has given Acked-by & mentioned to take it thr' Arnd
(8) cns3xxx - Krzysztof has given Acked-by (though not copied to lists,
he has been cc'ed here)
(9) mmp - Lubomir has given Acked-by & Tested-by & mentioned to get it
thr' Olof
(10) iop32xx - per get_mantainer, an orphan

Can you please include the patches 6-10 directly into the armsoc tree ?,
Let me know if anything needs to be done from my side.

Regards
afzal

[1] https://lkml.kernel.org/r/87y2somido.fsf@nanos.tec.linutronix.de

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: orion: replace setup_irq() by request_irq()
  2020-03-01 12:23 [PATCH v3] ARM: orion: " afzal mohammed
  2020-03-01 15:44 ` Andrew Lunn
@ 2020-03-13 20:39 ` Gregory CLEMENT
  1 sibling, 0 replies; 29+ messages in thread
From: Gregory CLEMENT @ 2020-03-13 20:39 UTC (permalink / raw)
  To: afzal mohammed, Viresh Kumar, Jason Cooper, Andrew Lunn,
	Sebastian Hesselbarth, Russell King, linux-arm-kernel,
	linux-kernel
  Cc: afzal mohammed

Hi afzal,

> request_irq() is preferred over setup_irq(). Invocations of setup_irq()
> occur after memory allocators are ready.
>
> Per tglx[1], setup_irq() existed in olden days when allocators were not
> ready by the time early interrupts were initialized.
>
> Hence replace setup_irq() by request_irq().
>
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
>
> Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>

Applied on mvebu/arm

Thanks,

Gregory

> ---
> Hi sub-arch maintainers,
>
> If the patch is okay, please take it thr' your tree.
>
> Regards
> afzal
>
> v3:
>  * Split out from series, also split out from ARM patch to subarch level
> 	as Thomas suggested to take it thr' respective maintainers
>  * Modify string displayed in case of error as suggested by Thomas
>  * Re-arrange code as required to improve readability
>  * Remove irrelevant parts from commit message & improve
>  
> v2:
>  * Replace pr_err("request_irq() on %s failed" by
>            pr_err("%s: request_irq() failed"
>  * Commit message massage
>
>  arch/arm/plat-orion/time.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/plat-orion/time.c b/arch/arm/plat-orion/time.c
> index ffb93db68e9c..509d4824dc1c 100644
> --- a/arch/arm/plat-orion/time.c
> +++ b/arch/arm/plat-orion/time.c
> @@ -177,12 +177,6 @@ static irqreturn_t orion_timer_interrupt(int irq, void *dev_id)
>  	return IRQ_HANDLED;
>  }
>  
> -static struct irqaction orion_timer_irq = {
> -	.name		= "orion_tick",
> -	.flags		= IRQF_TIMER,
> -	.handler	= orion_timer_interrupt
> -};
> -
>  void __init
>  orion_time_set_base(void __iomem *_timer_base)
>  {
> @@ -236,7 +230,9 @@ orion_time_init(void __iomem *_bridge_base, u32 _bridge_timer1_clr_mask,
>  	/*
>  	 * Setup clockevent timer (interrupt-driven).
>  	 */
> -	setup_irq(irq, &orion_timer_irq);
> +	if (request_irq(irq, orion_timer_interrupt, IRQF_TIMER, "orion_tick",
> +			NULL))
> +		pr_err("Failed to request irq %u (orion_tick)\n", irq);
>  	orion_clkevt.cpumask = cpumask_of(0);
>  	clockevents_config_and_register(&orion_clkevt, tclk, 1, 0xfffffffe);
>  }
> -- 
> 2.25.1
>

-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-13 15:45   ` [PATCH v3] ARM: " afzal mohammed
@ 2020-03-17  4:37     ` afzal mohammed
  2020-03-25 11:43       ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-17  4:37 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, soc, arm
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, Krzysztof Hałasa, Viresh Kumar,
	Thomas Gleixner, Alexander Sverdlin, Shiraz Hashim,
	linux-arm-kernel, Sebastian Hesselbarth

+ soc@kernel.org, arm@kernel.org,

in case it helps to reduce the chances of below mail getting slipped
thr' the cracks.

Regards
afzal

On Fri, Mar 13, 2020 at 09:15:20PM +0530, afzal mohammed wrote:
> Hi Olof, Arnd,
> 
> This is regarding cleanup of setup_irq() usages & replacing it w/
> request_irq(). Earlier it was sent as single series spanning all
> architectures & drivers, later Thomas Gleixner suggested [1] to take it
> thr' relevant maintainers. As for ARM, there is an additional layer of
> sub-architecture maintainers, for ARM, patches were sent to relevant
> subsystem maintainers & mailing list, all copied to LAKML as well.
> 
> There were 10 sub-arch's in ARM that were subjected to the cleanup,
> 
> 1. OMAP :https://lkml.kernel.org/r/20200301121945.3604-1-afzal.mohd.ma@gmail.com
> 2. ebsa110 :https://lkml.kernel.org/r/20200301122210.4013-1-afzal.mohd.ma@gmail.com
> 3. rpc :https://lkml.kernel.org/r/20200301122300.4185-1-afzal.mohd.ma@gmail.com
> 4. footbridge :https://lkml.kernel.org/r/20200301122131.3902-1-afzal.mohd.ma@gmail.com
> 5. orion :https://lkml.kernel.org/r/20200301122330.4296-1-afzal.mohd.ma@gmail.com
> 6. ep93xx :https://lkml.kernel.org/r/20200301122112.3847-1-afzal.mohd.ma@gmail.com
> 7. spear :https://lkml.kernel.org/r/20200301122315.4240-1-afzal.mohd.ma@gmail.com
> 8. cns3xxx :https://lkml.kernel.org/r/20200301122155.3957-1-afzal.mohd.ma@gmail.com
> 9. mmp :https://lkml.kernel.org/r/20200301122243.4129-1-afzal.mohd.ma@gmail.com
> 10. iop32x :https://lkml.kernel.org/r/20200301122226.4068-1-afzal.mohd.ma@gmail.com
> 
> Of this,
> 
> (1) OMAP, (2) ebsa110 & (3) rpc are already in linux-next.
> 
> (4) footbridge (Russell) - there was a build warning, so he dropped
> after applying to his tree, i have submitted the newer fixed version in
> his patch system.
> 
> (5) orion - Andrew has given Reviewed-by & Gregory mentioned that he will
> take care of it.
> 
> So if things goes as expected 1 & 5 will be coming to you thr' sub-arch
> maintainers, while 2-4 directly via Russell
> 
> Now we are left with five (6-10),
> (6) ep93xx - Alexander has given Acked-by & mentioned to take thr' Arnd
> (7) spear - Viresh has given Acked-by & mentioned to take it thr' Arnd
> (8) cns3xxx - Krzysztof has given Acked-by (though not copied to lists,
> he has been cc'ed here)
> (9) mmp - Lubomir has given Acked-by & Tested-by & mentioned to get it
> thr' Olof
> (10) iop32xx - per get_mantainer, an orphan
> 
> Can you please include the patches 6-10 directly into the armsoc tree ?,
> Let me know if anything needs to be done from my side.
> 
> Regards
> afzal
> 
> [1] https://lkml.kernel.org/r/87y2somido.fsf@nanos.tec.linutronix.de

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-17  4:37     ` afzal mohammed
@ 2020-03-25 11:43       ` afzal mohammed
  2020-03-27 10:46         ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-25 11:43 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, soc, arm, Thomas Gleixner
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, Krzysztof Hałasa, Viresh Kumar,
	Alexander Sverdlin, Shiraz Hashim, linux-arm-kernel,
	Sebastian Hesselbarth

Hi arm-soc maintainers,

On Tue, Mar 17, 2020 at 10:07:02AM +0530, afzal mohammed wrote:

> + soc@kernel.org, arm@kernel.org,
> in case it helps to reduce the chances of below mail getting slipped
> thr' the cracks.

> On Fri, Mar 13, 2020 at 09:15:20PM +0530, afzal mohammed wrote:

> > Hi Olof, Arnd,
> > 
> > This is regarding cleanup of setup_irq() usages & replacing it w/
> > request_irq(). Earlier it was sent as single series spanning all
> > architectures & drivers, later Thomas Gleixner suggested [1] to take it
> > thr' relevant maintainers. As for ARM, there is an additional layer of
> > sub-architecture maintainers, for ARM, patches were sent to relevant
> > subsystem maintainers & mailing list, all copied to LAKML as well.
:
:
> > Of this,
> > (1) OMAP, (2) ebsa110 & (3) rpc are already in linux-next.
> > (4) footbridge (Russell) - there was a build warning, so he dropped
> > after applying to his tree, i have submitted the newer fixed version in
> > his patch system.
> > (5) orion - Andrew has given Reviewed-by & Gregory mentioned that he will
> > take care of it.
> > So if things goes as expected 1 & 5 will be coming to you thr' sub-arch
> > maintainers, while 2-4 directly via Russell

footbridge & orion went into -next around a week back

> > Now we are left with five (6-10),
> > (6) ep93xx - Alexander has given Acked-by & mentioned to take thr' Arnd
> > (7) spear - Viresh has given Acked-by & mentioned to take it thr' Arnd
> > (8) cns3xxx - Krzysztof has given Acked-by (though not copied to lists,
> > he has been cc'ed here)
> > (9) mmp - Lubomir has given Acked-by & Tested-by & mentioned to get it
> > thr' Olof
> > (10) iop32xx - per get_mantainer, an orphan
> > 
> > Can you please include the patches 6-10 directly into the armsoc tree ?,
> > Let me know if anything needs to be done from my side.

Can you please consider for inclusion the above 5 patches.

Sorry for pestering, i understand that none of the ARM SoC pull requests
has been picked up as opposed to what happens normally by this time of
development cycle. Still asking as this is part of tree wide series &
it is safe to send core removal patch of setup_irq() to Thomas only
after all it's usages have been removed.

REgards
afzal

> > [1] https://lkml.kernel.org/r/87y2somido.fsf@nanos.tec.linutronix.de

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-25 11:43       ` afzal mohammed
@ 2020-03-27 10:46         ` afzal mohammed
  2020-03-27 10:55           ` Arnd Bergmann
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 10:46 UTC (permalink / raw)
  To: Arnd Bergmann, Thomas Gleixner
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, soc, arm, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Alexander Sverdlin, Shiraz Hashim,
	linux-arm-kernel, Sebastian Hesselbarth

Hi Arnd,

On Wed, Mar 25, 2020 at 05:13:32PM +0530, afzal mohammed wrote:
> On Tue, Mar 17, 2020 at 10:07:02AM +0530, afzal mohammed wrote:
> > On Fri, Mar 13, 2020 at 09:15:20PM +0530, afzal mohammed wrote:

> > > Can you please include the patches 6-10 directly into the armsoc tree ?,
> > > Let me know if anything needs to be done from my side.
> 
> Can you please consider for inclusion the above 5 patches.
> 
> Sorry for pestering, i understand that none of the ARM SoC pull requests
> has been picked up as opposed to what happens normally by this time of
> development cycle.

i think you have pulled the ARM SoC pull requests, but above changes
doesn't seem to be applied, can you please respond on how to proceed ?
(of all the tree-wide changes, the above are the only ones in limbo)

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-27 10:46         ` afzal mohammed
@ 2020-03-27 10:55           ` Arnd Bergmann
  2020-03-27 11:10             ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: Arnd Bergmann @ 2020-03-27 10:55 UTC (permalink / raw)
  To: afzal mohammed
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, SoC Team, arm-soc, Krzysztof Hałasa,
	Viresh Kumar, Olof Johansson, Thomas Gleixner,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM,
	Sebastian Hesselbarth

On Fri, Mar 27, 2020 at 11:46 AM afzal mohammed <afzal.mohd.ma@gmail.com> wrote:
>
> Hi Arnd,
>
> On Wed, Mar 25, 2020 at 05:13:32PM +0530, afzal mohammed wrote:
> > On Tue, Mar 17, 2020 at 10:07:02AM +0530, afzal mohammed wrote:
> > > On Fri, Mar 13, 2020 at 09:15:20PM +0530, afzal mohammed wrote:
>
> > > > Can you please include the patches 6-10 directly into the armsoc tree ?,
> > > > Let me know if anything needs to be done from my side.
> >
> > Can you please consider for inclusion the above 5 patches.
> >
> > Sorry for pestering, i understand that none of the ARM SoC pull requests
> > has been picked up as opposed to what happens normally by this time of
> > development cycle.
>
> i think you have pulled the ARM SoC pull requests, but above changes
> doesn't seem to be applied, can you please respond on how to proceed ?
> (of all the tree-wide changes, the above are the only ones in limbo)

Hi afzal,

To make sure I get the right ones, could you bounce all the patches that are
still missing to soc@kernel.org to let them show up in patchwork?

I'll apply them right away after that. Sorry I forgot about them as I went
through the patchwork backlog.

       Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-27 10:55           ` Arnd Bergmann
@ 2020-03-27 11:10             ` afzal mohammed
  2020-03-27 11:29               ` afzal mohammed
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 11:10 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, SoC Team, arm-soc, Krzysztof Hałasa,
	Viresh Kumar, Olof Johansson, Thomas Gleixner,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM,
	Sebastian Hesselbarth

Hi Arnd,

On Fri, Mar 27, 2020 at 11:55:36AM +0100, Arnd Bergmann wrote:

> To make sure I get the right ones, could you bounce all the patches that are
> still missing to soc@kernel.org to let them show up in patchwork?

Done.

If it helps, i can send the same patches w/ tags received as well.

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-27 11:10             ` afzal mohammed
@ 2020-03-27 11:29               ` afzal mohammed
  2020-03-27 11:58                 ` Arnd Bergmann
  0 siblings, 1 reply; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 11:29 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, SoC Team, arm-soc, Krzysztof Hałasa,
	Viresh Kumar, Olof Johansson, Thomas Gleixner,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM,
	Sebastian Hesselbarth

Hi Arnd,

On Fri, Mar 27, 2020 at 04:40:12PM +0530, afzal mohammed wrote:
> On Fri, Mar 27, 2020 at 11:55:36AM +0100, Arnd Bergmann wrote:

> > To make sure I get the right ones, could you bounce all the patches that are
> > still missing to soc@kernel.org to let them show up in patchwork?
> 
> Done.

Sorry, i first forwarded, after that i bounced all, but not able to
see the bounced ones in patchwork, only the forwarded ones.

> If it helps, i can send the same patches w/ tags received as well.

Let me know if if anything more needs to be done from my side.

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-27 11:29               ` afzal mohammed
@ 2020-03-27 11:58                 ` Arnd Bergmann
  2020-03-27 12:41                   ` [PATCH v4 1/5] ARM: ep93xx: Replace " afzal mohammed
                                     ` (5 more replies)
  0 siblings, 6 replies; 29+ messages in thread
From: Arnd Bergmann @ 2020-03-27 11:58 UTC (permalink / raw)
  To: afzal mohammed
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, SoC Team, arm-soc, Krzysztof Hałasa,
	Viresh Kumar, Olof Johansson, Thomas Gleixner,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM,
	Sebastian Hesselbarth

On Fri, Mar 27, 2020 at 12:29 PM afzal mohammed <afzal.mohd.ma@gmail.com> wrote:
>
> Hi Arnd,
>
> On Fri, Mar 27, 2020 at 04:40:12PM +0530, afzal mohammed wrote:
> > On Fri, Mar 27, 2020 at 11:55:36AM +0100, Arnd Bergmann wrote:
>
> > > To make sure I get the right ones, could you bounce all the patches that are
> > > still missing to soc@kernel.org to let them show up in patchwork?
> >
> > Done.
>
> Sorry, i first forwarded, after that i bounced all, but not able to
> see the bounced ones in patchwork, only the forwarded ones.

Right, I see the same thing. Unfortunately, the version I have now
doesn't work easily in git-am.

> > If it helps, i can send the same patches w/ tags received as well.
>
> Let me know if if anything more needs to be done from my side.

I can probably fix it up here, but it would help if you can resend the
remaining patches using git-send-email with all the tags added in
and the normal subject lines.

      Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v4 1/5] ARM: ep93xx: Replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
@ 2020-03-27 12:41                   ` afzal mohammed
  2020-03-27 12:44                   ` [PATCH v4 2/5] ARM: spear: replace " afzal mohammed
                                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:41 UTC (permalink / raw)
  To: Arnd Bergmann, SoC Team
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	afzal mohammed, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, arm-soc, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Thomas Gleixner, Sebastian Hesselbarth,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM, Viresh Kumar

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
---

v4:
 * Add received tags

v3:
 * Split out from series, also create subarch level patch as Thomas
	suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-ep93xx/timer-ep93xx.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-ep93xx/timer-ep93xx.c b/arch/arm/mach-ep93xx/timer-ep93xx.c
index de998830f534..dd4b164d1831 100644
--- a/arch/arm/mach-ep93xx/timer-ep93xx.c
+++ b/arch/arm/mach-ep93xx/timer-ep93xx.c
@@ -117,15 +117,11 @@ static irqreturn_t ep93xx_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction ep93xx_timer_irq = {
-	.name		= "ep93xx timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= ep93xx_timer_interrupt,
-	.dev_id		= &ep93xx_clockevent,
-};
-
 void __init ep93xx_timer_init(void)
 {
+	int irq = IRQ_EP93XX_TIMER3;
+	unsigned long flags = IRQF_TIMER | IRQF_IRQPOLL;
+
 	/* Enable and register clocksource and sched_clock on timer 4 */
 	writel(EP93XX_TIMER4_VALUE_HIGH_ENABLE,
 	       EP93XX_TIMER4_VALUE_HIGH);
@@ -136,7 +132,9 @@ void __init ep93xx_timer_init(void)
 			     EP93XX_TIMER4_RATE);
 
 	/* Set up clockevent on timer 3 */
-	setup_irq(IRQ_EP93XX_TIMER3, &ep93xx_timer_irq);
+	if (request_irq(irq, ep93xx_timer_interrupt, flags, "ep93xx timer",
+			&ep93xx_clockevent))
+		pr_err("Failed to request irq %d (ep93xx timer)\n", irq);
 	clockevents_config_and_register(&ep93xx_clockevent,
 					EP93XX_TIMER123_RATE,
 					1,
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v4 2/5] ARM: spear: replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
  2020-03-27 12:41                   ` [PATCH v4 1/5] ARM: ep93xx: Replace " afzal mohammed
@ 2020-03-27 12:44                   ` afzal mohammed
  2020-03-27 12:44                   ` [PATCH v4 3/5] ARM: cns3xxx: " afzal mohammed
                                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:44 UTC (permalink / raw)
  To: Arnd Bergmann, SoC Team
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	afzal mohammed, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, arm-soc, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Thomas Gleixner, Sebastian Hesselbarth,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM, Viresh Kumar

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
---

v4:
 * Add received tags

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-spear/time.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-spear/time.c b/arch/arm/mach-spear/time.c
index 289e036c9c30..d1fdb6066f7b 100644
--- a/arch/arm/mach-spear/time.c
+++ b/arch/arm/mach-spear/time.c
@@ -181,12 +181,6 @@ static irqreturn_t spear_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction spear_timer_irq = {
-	.name = "timer",
-	.flags = IRQF_TIMER,
-	.handler = spear_timer_interrupt
-};
-
 static void __init spear_clockevent_init(int irq)
 {
 	u32 tick_rate;
@@ -201,7 +195,8 @@ static void __init spear_clockevent_init(int irq)
 
 	clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0);
 
-	setup_irq(irq, &spear_timer_irq);
+	if (request_irq(irq, spear_timer_interrupt, IRQF_TIMER, "timer", NULL))
+		pr_err("Failed to request irq %d (timer)\n", irq);
 }
 
 static const struct of_device_id timer_of_match[] __initconst = {
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v4 3/5] ARM: cns3xxx: replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
  2020-03-27 12:41                   ` [PATCH v4 1/5] ARM: ep93xx: Replace " afzal mohammed
  2020-03-27 12:44                   ` [PATCH v4 2/5] ARM: spear: replace " afzal mohammed
@ 2020-03-27 12:44                   ` afzal mohammed
  2020-03-27 12:44                   ` [PATCH v4 4/5] ARM: mmp: " afzal mohammed
                                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:44 UTC (permalink / raw)
  To: Arnd Bergmann, SoC Team
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	afzal mohammed, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, arm-soc, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Thomas Gleixner, Sebastian Hesselbarth,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM, Viresh Kumar

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Acked-by: Krzysztof Halasa <khalasa@piap.pl>
---

v4:
 * Add received tags

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-cns3xxx/core.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/arm/mach-cns3xxx/core.c b/arch/arm/mach-cns3xxx/core.c
index 1d61a7701c11..e4f4b20b83a2 100644
--- a/arch/arm/mach-cns3xxx/core.c
+++ b/arch/arm/mach-cns3xxx/core.c
@@ -189,12 +189,6 @@ static irqreturn_t cns3xxx_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction cns3xxx_timer_irq = {
-	.name		= "timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= cns3xxx_timer_interrupt,
-};
-
 /*
  * Set up the clock source and clock events devices
  */
@@ -245,7 +239,9 @@ static void __init __cns3xxx_timer_init(unsigned int timer_irq)
 	writel(val, cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET);
 
 	/* Make irqs happen for the system timer */
-	setup_irq(timer_irq, &cns3xxx_timer_irq);
+	if (request_irq(timer_irq, cns3xxx_timer_interrupt,
+			IRQF_TIMER | IRQF_IRQPOLL, "timer", NULL))
+		pr_err("Failed to request irq %d (timer)\n", timer_irq);
 
 	cns3xxx_clockevents_init(timer_irq);
 }
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v4 4/5] ARM: mmp: replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
                                     ` (2 preceding siblings ...)
  2020-03-27 12:44                   ` [PATCH v4 3/5] ARM: cns3xxx: " afzal mohammed
@ 2020-03-27 12:44                   ` afzal mohammed
  2020-03-27 12:44                   ` [PATCH v4 5/5] ARM: iop32x: " afzal mohammed
  2020-03-27 12:53                   ` [PATCH v3] ARM: " afzal mohammed
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:44 UTC (permalink / raw)
  To: Arnd Bergmann, SoC Team
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	afzal mohammed, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, arm-soc, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Thomas Gleixner, Sebastian Hesselbarth,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM, Viresh Kumar

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Acked-by: Lubomir Rintel <lkundrak@v3.sk>
Tested-by: Lubomir Rintel <lkundrak@v3.sk>
---

v4:
 * Add received tags

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-mmp/time.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-mmp/time.c b/arch/arm/mach-mmp/time.c
index c65cfc1ad99b..049a65f47b42 100644
--- a/arch/arm/mach-mmp/time.c
+++ b/arch/arm/mach-mmp/time.c
@@ -175,13 +175,6 @@ static void __init timer_config(void)
 	__raw_writel(0x2, mmp_timer_base + TMR_CER);
 }
 
-static struct irqaction timer_irq = {
-	.name		= "timer",
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.handler	= timer_interrupt,
-	.dev_id		= &ckevt,
-};
-
 void __init mmp_timer_init(int irq, unsigned long rate)
 {
 	timer_config();
@@ -190,7 +183,9 @@ void __init mmp_timer_init(int irq, unsigned long rate)
 
 	ckevt.cpumask = cpumask_of(0);
 
-	setup_irq(irq, &timer_irq);
+	if (request_irq(irq, timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
+			"timer", &ckevt))
+		pr_err("Failed to request irq %d (timer)\n", irq);
 
 	clocksource_register_hz(&cksrc, rate);
 	clockevents_config_and_register(&ckevt, rate, MIN_DELTA, MAX_DELTA);
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v4 5/5] ARM: iop32x: replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
                                     ` (3 preceding siblings ...)
  2020-03-27 12:44                   ` [PATCH v4 4/5] ARM: mmp: " afzal mohammed
@ 2020-03-27 12:44                   ` afzal mohammed
  2020-03-27 12:53                   ` [PATCH v3] ARM: " afzal mohammed
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:44 UTC (permalink / raw)
  To: Arnd Bergmann, SoC Team
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	afzal mohammed, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, arm-soc, Krzysztof Hałasa, Viresh Kumar,
	Olof Johansson, Thomas Gleixner, Sebastian Hesselbarth,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM, Viresh Kumar

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
---

v4:
 * No change

v3:
 * Split out from series, also split out from ARM patch to subarch level
	as Thomas suggested to take it thr' respective maintainers
 * Modify string displayed in case of error as suggested by Thomas
 * Re-arrange code as required to improve readability
 * Remove irrelevant parts from commit message & improve
 
v2:
 * Replace pr_err("request_irq() on %s failed" by
           pr_err("%s: request_irq() failed"
 * Commit message massage

 arch/arm/mach-iop32x/time.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-iop32x/time.c b/arch/arm/mach-iop32x/time.c
index 18a4df5c1baa..ae533b66fefd 100644
--- a/arch/arm/mach-iop32x/time.c
+++ b/arch/arm/mach-iop32x/time.c
@@ -137,13 +137,6 @@ iop_timer_interrupt(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct irqaction iop_timer_irq = {
-	.name		= "IOP Timer Tick",
-	.handler	= iop_timer_interrupt,
-	.flags		= IRQF_TIMER | IRQF_IRQPOLL,
-	.dev_id		= &iop_clockevent,
-};
-
 static unsigned long iop_tick_rate;
 unsigned long get_iop_tick_rate(void)
 {
@@ -154,6 +147,7 @@ EXPORT_SYMBOL(get_iop_tick_rate);
 void __init iop_init_time(unsigned long tick_rate)
 {
 	u32 timer_ctl;
+	int irq = IRQ_IOP32X_TIMER0;
 
 	sched_clock_register(iop_read_sched_clock, 32, tick_rate);
 
@@ -168,7 +162,9 @@ void __init iop_init_time(unsigned long tick_rate)
 	 */
 	write_tmr0(timer_ctl & ~IOP_TMR_EN);
 	write_tisr(1);
-	setup_irq(IRQ_IOP32X_TIMER0, &iop_timer_irq);
+	if (request_irq(irq, iop_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
+			"IOP Timer Tick", &iop_clockevent))
+		pr_err("Failed to request irq() %d (IOP Timer Tick)\n", irq);
 	iop_clockevent.cpumask = cpumask_of(0);
 	clockevents_config_and_register(&iop_clockevent, tick_rate,
 					0xf, 0xfffffffe);
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v3] ARM: replace setup_irq() by request_irq()
  2020-03-27 11:58                 ` Arnd Bergmann
                                     ` (4 preceding siblings ...)
  2020-03-27 12:44                   ` [PATCH v4 5/5] ARM: iop32x: " afzal mohammed
@ 2020-03-27 12:53                   ` afzal mohammed
  5 siblings, 0 replies; 29+ messages in thread
From: afzal mohammed @ 2020-03-27 12:53 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Andrew Lunn, Jason Cooper, Hartley Sweeten, Tony Lindgren,
	Viresh Kumar, Gregory CLEMENT, Russell King, linux-kernel,
	Lubomir Rintel, SoC Team, arm-soc, Krzysztof Hałasa,
	Viresh Kumar, Olof Johansson, Thomas Gleixner,
	Alexander Sverdlin, Shiraz Hashim, Linux ARM,
	Sebastian Hesselbarth

Hi,

On Fri, Mar 27, 2020 at 12:58:57PM +0100, Arnd Bergmann wrote:

> I can probably fix it up here, but it would help if you can resend the
> remaining patches using git-send-email with all the tags added in
> and the normal subject lines.

i have sent the remaining patches using git send-email w/ all the tags
collected and with normal subject lines, as a reply to your mail. They
look okay in patchwork, let me know in case of any problems.

Regards
afzal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-03-27 12:53 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-01 12:19 [PATCH v3] ARM: OMAP: replace setup_irq() by request_irq() afzal mohammed
2020-03-04 16:34 ` Tony Lindgren
2020-03-13 15:45   ` [PATCH v3] ARM: " afzal mohammed
2020-03-17  4:37     ` afzal mohammed
2020-03-25 11:43       ` afzal mohammed
2020-03-27 10:46         ` afzal mohammed
2020-03-27 10:55           ` Arnd Bergmann
2020-03-27 11:10             ` afzal mohammed
2020-03-27 11:29               ` afzal mohammed
2020-03-27 11:58                 ` Arnd Bergmann
2020-03-27 12:41                   ` [PATCH v4 1/5] ARM: ep93xx: Replace " afzal mohammed
2020-03-27 12:44                   ` [PATCH v4 2/5] ARM: spear: replace " afzal mohammed
2020-03-27 12:44                   ` [PATCH v4 3/5] ARM: cns3xxx: " afzal mohammed
2020-03-27 12:44                   ` [PATCH v4 4/5] ARM: mmp: " afzal mohammed
2020-03-27 12:44                   ` [PATCH v4 5/5] ARM: iop32x: " afzal mohammed
2020-03-27 12:53                   ` [PATCH v3] ARM: " afzal mohammed
2020-03-01 12:21 [PATCH v3] ARM: ep93xx: Replace " afzal mohammed
2020-03-01 16:21 ` Alexander Sverdlin
2020-03-01 12:22 [PATCH v3] ARM: mmp: replace " afzal mohammed
2020-03-08 14:53 ` afzal mohammed
     [not found]   ` <20200308161903.GA156645@furthur.local>
2020-03-01 12:22     ` [PATCH v3] ARM: iop32x: " afzal mohammed
2020-03-09 12:19     ` [PATCH v3] ARM: mmp: " afzal mohammed
2020-03-01 12:23 [PATCH v3] ARM: spear: " afzal mohammed
2020-03-02  3:17 ` Viresh Kumar
2020-03-01 12:23 [PATCH v3] ARM: orion: " afzal mohammed
2020-03-01 15:44 ` Andrew Lunn
2020-03-08 14:37   ` afzal mohammed
2020-03-09 16:17     ` Gregory CLEMENT
2020-03-13 20:39 ` Gregory CLEMENT

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).