• Lorenzo Pieralisi's avatar
    irqchip/gic-v3-its-platform-msi: Fix msi-parent parsing loop · a0088737
    Lorenzo Pieralisi authored
    While parsing the msi-parent property to chase up the IRQ domain
    a given device belongs to, the index into the msi-parent tuple should
    be incremented to ensure all properties entries are taken into account.
    
    Current code missed the index update so the parsing loop does not work
    in case multiple msi-parent phandles are present and may turn into
    an infinite loop in of_pmsi_get_dev_id() if phandle at index 0 does
    not correspond to the domain we are actually looking-up.
    
    Fix the code by updating the phandle index at each iteration in
    of_pmsi_get_dev_id().
    
    Fixes: deac7fc1 ("irqchip/gic-v3-its: Parse new version of msi-parent property")
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    a0088737
irq-gic-v3-its-platform-msi.c 4.15 KB