Files
linux/include/linux
Thomas Gleixner 255ba9587f UPSTREAM: genirq: Handle NOAUTOEN interrupt setup proper
If an interrupt is marked NOAUTOEN then request_irq() installs the action,
but does not enable the interrupt via startup_irq().  The interrupt is
enabled via enable_irq() later from the driver. enable_irq() calls
irq_enable().

That means that for interrupts which have a irq_startup() callback this
callback is never invoked. Neither is irq_domain_activate_irq() invoked for
such interrupts.

If an interrupt depends on irq_startup() or irq_domain_activate_irq() then
the enable via irq_enable() is not enough.

Add a status flag IRQD_IRQ_STARTED_UP and use this to select the proper
mechanism in enable_irq(). Use the flag also to avoid pointless calls into
the low level functions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: dianders@chromium.org
Cc: jeffy <jeffy.chen@rock-chips.com>
Cc: Brian Norris <briannorris@chromium.org>
Cc: tfiga@chromium.org
Link: http://lkml.kernel.org/r/20170531100212.130986205@linutronix.de

(cherry picked from commit 201d7f47f3)

Conflicts:
	include/linux/irq.h
	[due to missing upstream patches:
	  08d85f3 irqdomain: Avoid activating interrupts more than once
	  1a3d28a UPSTREAM: genirq: Introduce IRQD_AFFINITY_MANAGED flag
	  6297714 UPSTREAM: irq: Privatize irq_common_data::state_use_accessors]

Change-Id: Ie8d492c694171fa81e3df61e8561bec160ad37bb
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2017-12-26 11:12:46 +08:00
..
2015-10-01 12:48:11 -07:00
2015-06-25 11:49:31 +03:00
2015-10-17 21:22:08 -07:00
2015-10-07 18:08:15 +01:00
2015-11-11 19:52:00 +08:00
2017-12-21 10:29:40 +08:00
2016-08-20 18:09:25 +02:00
2017-02-22 14:18:11 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 19:52:00 +08:00
2017-11-20 21:15:59 +05:30
2015-11-11 15:54:30 +08:00
2015-05-13 12:04:55 -05:00
2015-03-25 20:28:11 -04:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2016-03-09 15:34:52 -08:00
2017-10-08 10:14:18 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-07 10:40:47 -07:00
2017-06-14 13:16:23 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2017-11-15 14:48:58 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-02-12 18:54:15 -08:00
2015-09-08 15:35:28 -07:00
2015-11-11 15:57:28 +08:00
2017-07-21 07:44:58 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-01-21 19:21:30 +01:00
2014-11-10 09:27:30 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2017-10-15 23:28:32 +05:30
2017-06-21 15:13:01 +08:00
2017-07-15 11:57:44 +02:00
2014-12-31 13:06:50 -05:00
2015-11-11 15:57:28 +08:00
2014-10-09 11:35:48 +03:00
2015-06-24 17:49:45 -07:00
2014-10-08 16:01:41 -04:00
2017-10-15 23:28:32 +05:30
2017-10-15 23:28:32 +05:30
2017-10-15 23:28:32 +05:30
2017-08-06 19:19:42 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2014-08-06 18:01:24 -07:00
2016-02-16 13:50:55 -08:00
2015-05-12 10:46:53 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-03-16 21:45:54 +11:00
2015-05-05 13:40:42 -06:00
2014-06-06 16:08:13 -07:00
2016-04-20 15:42:02 +09:00
2015-10-23 05:44:28 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-10-01 15:06:43 +02:00
2015-06-25 12:06:45 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2017-07-06 11:07:39 +08:00
2015-08-18 15:49:15 -07:00
2015-11-11 15:57:28 +08:00
2015-07-28 08:50:42 +01:00
2015-11-11 15:57:28 +08:00
2015-04-29 17:17:17 -05:00
2015-11-11 15:57:28 +08:00
2015-11-23 09:44:58 +01:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2014-09-13 10:57:41 +08:00
2015-04-14 16:49:05 -07:00
2015-11-11 15:57:28 +08:00
2015-06-24 17:49:41 -07:00
2015-11-11 15:57:28 +08:00
2015-10-20 22:10:45 +08:00
2015-07-21 10:39:05 -07:00
2015-03-24 14:32:56 +08:00
2015-11-11 15:57:28 +08:00
2015-06-25 04:20:04 -04:00
2015-11-11 15:57:28 +08:00
2016-03-03 15:07:28 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-03-11 17:56:28 -04:00
2014-11-04 13:29:38 +00:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-09-10 13:29:01 -07:00
2015-11-06 17:50:42 -08:00
2014-07-09 14:58:37 +01:00
2015-04-12 21:03:31 +02:00
2015-01-25 23:17:28 -05:00
2017-08-24 17:02:36 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:54:30 +08:00
2015-10-09 17:00:32 -04:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-05-26 15:23:23 +02:00
2015-06-25 01:13:43 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2014-08-08 15:57:26 -07:00
2016-09-24 11:33:19 +08:00
2016-09-30 10:18:37 +02:00
2015-11-11 15:57:28 +08:00
2014-06-12 00:21:11 -04:00
2014-06-04 16:53:57 -07:00
2015-06-25 17:00:39 -07:00
2017-07-06 11:07:40 +08:00
2015-08-17 11:25:28 -07:00
2015-11-11 15:57:28 +08:00
2015-10-19 01:01:21 +02:00
2016-06-01 12:15:52 -07:00
2015-11-23 09:44:58 +01:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-12-13 14:30:59 -08:00
2015-03-24 09:48:14 -07:00
2017-09-13 14:09:45 -07:00
2015-11-13 20:34:33 -05:00
2015-09-08 15:35:28 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00