+45
−39
Loading
mainline inclusion from mainline-v6.4-rc1 commit 76d4adac category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9S5DK CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=76d4adacd52e78bea2e393081f2a5766261d1e3a -------------------------------- 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:Sudeep Holla <sudeep.holla@arm.com> Signed-off-by:
Elliot Berman <quic_eberman@quicinc.com> Signed-off-by:
Jassi Brar <jaswinder.singh@linaro.org>