Re: [PATCH] Fix J-core aic warning spam

Sergey Shtylyov <[email protected]>
Newsgroups gmane.linux.ports.sh.devel
Organization Open Mobile Platform
Message-ID <[email protected]>
On 4/18/23 10:18 AM, Geert Uytterhoeven wrote:
[...]
>>> From: Rich Felker <[email protected]>
>>> Signed-off-by: Rob Landley <[email protected]>
>>>
>>> Silence noisy boot messages (warning and stack dump for each IRQ) when booting
>>> on J2 SOC.
> 
>>> --- a/drivers/irqchip/irq-jcore-aic.c
>>> +++ b/drivers/irqchip/irq-jcore-aic.c
[...]
>>> @@ -100,6 +101,11 @@ static int __init aic_irq_of_init(struct device_node *node,
>>>       jcore_aic.irq_unmask = noop;
>>>       jcore_aic.name = "AIC";
>>>
>>> +     rc = irq_alloc_descs(min_irq, min_irq, dom_sz - min_irq,
>>> +                          of_node_to_nid(node));
>>> +     if (rc < 0)
>>> +             pr_info("Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n",
>>> +                     min_irq);
> 
> This is a fatal error, so please bail out, instead of continuing.

   Then shounld't we use pr_err() (or stronger), not pr_info()?

[...]

> Gr{oetje,eeting}s,
> 
>                         Geert

MBR, Sergey
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.