arch: irq: multilevel: the value return from irq_parent_level_3()
is wrong
#79301
Labels
area: Architectures
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
When Zephyr encodes an IRQ to the second and the third level, the value of the IRQ is incremented by one, as zero means no IRQs present in that level.
So when we want to get the parent IRQ of level 3 with
irq_parent_level_3()
, the value in the level 2 should be restored by minus 1.To Reproduce
Expected behavior
irq_parent_level_3()
should return the correct IRQ and the test should passImpact
Applications/drivers that depend on
irq_parent_level_3()
will get the wrong IRQ value.Context
This can be closed by backporting the first commit (30aa346) of #78845
The text was updated successfully, but these errors were encountered: