Re: [PATCH] sh: Avoid using IRQ0 on SH3 and SH4
Geert Uytterhoeven <[email protected]>
| Newsgroups | gmane.linux.ports.sh.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <CAMuHMdUfXdCf_CQuWXpP72MzKFYvXg3Ud1VN_3Bd0RHxfLhVeQ@mail.gmail.com> |
Hi Günter, On Thu, Jul 6, 2023 at 4:03 PM Guenter Roeck <[email protected]> wrote: > On Thu, Jun 01, 2023 at 11:22:17PM +0300, Sergey Shtylyov wrote: > > 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. > > > > Unfortunately it also affects all sh4 emulations in qemu, and results in > boot stalls with those. There isn't a relevant log to attach because there > is no error message - booting just stalls until the emulation is aborted. Which sh4 platforms in particular? I booted a kernel with this patch on rts7751r2d (QEMU) and landisk (physical) two days ago. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds