Max Filippov
e0c6e864d2
xtensa: call irqchip_init only when CONFIG_USE_OF is selected
...
[ Upstream commit 6489f8d0e1d93a3603d8dad8125797559e4cf2a2 ]
During boot time kernel configured with OF=y but USE_OF=n displays the
following warnings and hangs shortly after starting userspace:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at kernel/irq/irqdomain.c:695 irq_create_mapping_affinity+0x29/0xc0
irq_create_mapping_affinity(, 6) called with NULL domain
CPU: 0 PID: 0 Comm: swapper Not tainted 5.15.0-rc3-00001-gd67ed2510d28 #30
Call Trace:
__warn+0x69/0xc4
warn_slowpath_fmt+0x6c/0x94
irq_create_mapping_affinity+0x29/0xc0
local_timer_setup+0x40/0x88
time_init+0xb1/0xe8
start_kernel+0x31d/0x3f4
_startup+0x13b/0x13b
---[ end trace 1e6630e1c5eda35b ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at arch/xtensa/kernel/time.c:141 local_timer_setup+0x58/0x88
error: can't map timer irq
CPU: 0 PID: 0 Comm: swapper Tainted: G W 5.15.0-rc3-00001-gd67ed2510d28 #30
Call Trace:
__warn+0x69/0xc4
warn_slowpath_fmt+0x6c/0x94
local_timer_setup+0x58/0x88
time_init+0xb1/0xe8
start_kernel+0x31d/0x3f4
_startup+0x13b/0x13b
---[ end trace 1e6630e1c5eda35c ]---
Failed to request irq 0 (timer)
Fix that by calling irqchip_init only when CONFIG_USE_OF is selected and
calling legacy interrupt controller init otherwise.
Fixes: da844a81779e ("xtensa: add device trees support")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-13 10:08:18 +02:00
..
2019-07-11 10:09:44 -07:00
2017-12-10 14:48:53 -08:00
2020-08-21 13:05:24 +02:00
2021-04-07 14:47:42 +02:00
2020-10-01 13:17:22 +02:00
2019-09-01 13:11:57 -07:00
2019-05-06 17:48:55 -07:00
2021-10-13 10:08:18 +02:00
2019-01-06 09:46:51 +09:00
2018-12-20 14:44:38 -08:00
2019-07-08 10:04:48 -07:00
2017-12-16 22:37:08 -08:00
2015-11-03 17:19:39 +03:00
2019-09-04 11:13:20 +02:00
2019-06-16 23:31:29 -07:00
2020-08-21 13:05:24 +02:00
2019-06-16 23:31:28 -07:00
2020-01-14 20:08:35 +01:00
2020-10-01 13:17:22 +02:00
2016-11-16 15:08:28 -08:00
2021-10-13 10:08:18 +02:00
2019-09-01 13:11:57 -07:00
2019-05-14 19:52:50 -07:00
2019-09-01 13:11:57 -07:00
2018-12-17 13:50:25 -08:00
2019-02-07 12:16:49 -08:00
2019-09-01 13:11:57 -07:00
2017-12-10 14:48:52 -08:00
2019-05-06 17:48:55 -07:00
2020-07-29 10:18:26 +02:00