Re: [PATCH, RESEND] serial: 8250-mtk: Ask for IRQ-count before request one

From: Fabio Estevam
Date: Sat Oct 26 2019 - 16:31:18 EST


On Sat, Oct 26, 2019 at 4:46 PM Frank Wunderlich
<frank-w@xxxxxxxxxxxxxxx> wrote:
>
> at least on bananapi-r2 we have only 1 IRQ and need to
> check for IRQ-count to fix following Errors during probe:
>
> [ 4.935780] mt6577-uart 11004000.serial: IRQ index 1 not found
> [ 4.962589] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 202, base_baud = 1625000) is a ST16650V2
> [ 4.972127] mt6577-uart 11002000.serial: IRQ index 1 not found
> [ 4.998927] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 203, base_baud = 1625000) is a ST16650V2
> [ 5.008474] mt6577-uart 11003000.serial: IRQ index 1 not found
>
> based on Patch from Anson Huang
> https://patchwork.ozlabs.org/patch/1164500/

The solution that was accepted for this case was to use
platform_get_irq_optional() instead.

You could try using platform_get_irq_optional() here as well.