• Milton Miller's avatar
    powerpc/fsl_msi: Use chip_data not handler_data · d1921bcd
    Milton Miller authored
    handler_data should be reserved for flow handlers on the dependent
    irq, not consumed by the parent irq code that is part of the irq_chip
    code.  The msi_data pointer was already set in msidesc->irqhost->hostdata
    and being copied to irq_data->chipdata in the msidesc->irqhost->map()
    method called via create_irq_mapping, so we can obtain the pointer
    from there and free the instance it in teardown_msi_irqs.
    Also remove the unnecessary cast of irq_get_handler_data in the
    cascade handler, which is the demux flow handler of the parent
    msi interrupt.  (This is the expected usage for handler_data).
    Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
fsl_msi.c 10.7 KB