]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: pcc: Wire up ->last_tx_done() for PCC channels
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 16 Oct 2025 19:08:16 +0000 (20:08 +0100)
committerJassi Brar <jassisinghbrar@gmail.com>
Sun, 18 Jan 2026 20:19:20 +0000 (14:19 -0600)
commita5695dedb76684b85c7deb54bc81546dac2724ad
treef49d2db5390a949dcce391f1e156c95f548140e5
parentf82c3e62b6b8c31d8c56415bf38658f306fda4cb
mailbox: pcc: Wire up ->last_tx_done() for PCC channels

Some PCC users poll for completion between transfers and benefit from
the knowledge of previous Tx completion check through the mailbox
framework's ->last_tx_done() op.

Hook up the last_tx_done callback in the PCC mailbox driver so the mailbox
framework can correctly query the completion status of the last transmitted
message. This aligns PCC with other controllers that already implement such
last_tx_done status query.

No functional change unless callers use ->last_tx_done(). Normal Tx and
IRQ paths are unchanged. This change just improves synchronization and
avoids unnecessary timeouts for non-interrupt driven channels by ensuring
correct completion detection for PCC channels that don’t rely on interrupts.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Adam Young <admiyo@os.amperecomputing.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/pcc.c