linux/arch/sh/kernel
Sergey Shtylyov f5d7f9e155 sh: Avoid using IRQ0 on SH3 and SH4
[ Upstream commit a8ac296114 ]

IRQ0 is no longer returned by platform_get_irq() and its ilk -- they now
return -EINVAL instead.  However, the kernel code supporting SH3/4-based
SoCs still maps the IRQ #s starting at 0 -- modify that code to start the
IRQ #s from 16 instead.

The patch should mostly affect the AP-SH4A-3A/AP-SH4AD-0A boards as they
indeed are using IRQ0 for the SMSC911x compatible Ethernet chip.

Fixes: ce753ad154 ("platform: finally disallow IRQ0 in platform_get_irq() and its ilk")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/71105dbf-cdb0-72e1-f9eb-eeda8e321696@omp.ru
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-19 16:21:54 +02:00
..
cpu sh: Avoid using IRQ0 on SH3 and SH4 2023-07-19 16:21:54 +02:00
syscalls arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
vsyscall
.gitignore
asm-offsets.c
crash_dump.c vmcore: convert copy_oldmem_page() to take an iov_iter 2022-04-29 14:37:59 -07:00
debugtraps.S
disassemble.c
dma-coherent.c
dumpstack.c
dwarf.c
entry-common.S
ftrace.c ftrace: Cleanup ftrace_dyn_arch_init() 2021-10-08 19:41:39 -04:00
head_32.S sh: init: use OF_EARLY_FLATTREE for early init 2023-05-17 11:53:44 +02:00
hw_breakpoint.c
idle.c
io_trapped.c sh: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
io.c
iomap.c
ioport.c
irq_32.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
kdebugfs.c
kgdb.c
kprobes.c kprobes: treewide: Make it harder to refer kretprobe_trampoline directly 2021-09-30 21:24:06 -04:00
machine_kexec.c
machvec.c sh: machvec: Use char[] for section boundaries 2022-09-13 10:33:17 -07:00
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
module.c
nmi_debug.c sh: nmi_debug: fix return value of __setup handler 2023-05-17 11:53:45 +02:00
perf_callchain.c
perf_event.c sh: Get rid of oprofile leftovers 2021-04-22 13:32:39 +01:00
process_32.c kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
process.c
ptrace_32.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
ptrace.c
reboot.c sh: Use do_kernel_power_off() 2022-05-19 19:30:31 +02:00
relocate_kernel.S
return_address.c
setup.c sh: init: use OF_EARLY_FLATTREE for early init 2023-05-17 11:53:44 +02:00
sh_bios.c
sh_ksyms_32.c
signal_32.c sh: sanitize the flags on sigreturn 2023-03-30 12:49:19 +02:00
smp.c sched/core: Initialize the idle task with preemption disabled 2021-05-12 13:01:45 +02:00
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S
time.c
topology.c drivers/base/node: consolidate node device subsystem initialization in node_dev_init() 2022-03-22 15:57:10 -07:00
traps_32.c sh: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
traps.c exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
unwinder.c
vmlinux.lds.S sh: define RUNTIME_DISCARD_EXIT 2023-02-25 11:25:42 +01:00