• Sudeep Holla's avatar
    mailbox: add tx_prepare client callback · 97b0c7bd
    Sudeep Holla authored
    If the mailbox controller expects the payload is in place before
    initiating the transmit, then it's impossible to reuse the list
    maintained by core mailbox code currently. Maintaining another list
    for sending the message in the controller seems totally unnecessary
    as core mailbox library already provides that feature.
    
    This patch introduces tx_prepare callback in mbox_client which
    can be used by the core mailbox library before initiating the
    transaction through mbox->ops->send_data. The client driver can
    implement this callback to ensure the payload is copied to the
    shared memory.
    Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
    97b0c7bd
mailbox.c 12.1 KB