• Elliot Berman's avatar
    mailbox: pcc: Use mbox_bind_client · 76d4adac
    Elliot Berman authored
    Use generic mbox_bind_client() to bind omap mailbox channel to a client.
    
    mbox_bind_client is identical to the replaced lines, except that it:
     - Does the operation under con_mutex which prevents possible races in
       removal path
     - Sets TXDONE_BY_ACK if pcc uses TXDONE_BY_POLL and the client knows
       when tx is done. TXDONE_BY_ACK is already set if there's no interrupt,
       so this is not applicable.
     - Calls chan->mbox->ops->startup. This is usecase for requesting irq:
       move the devm_request_irq into the startup callback and unregister it
       in the shutdown path.
    Tested-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
    Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
    76d4adac
pcc.c 20 KB