[PATCH 0/2] mailbox: tegra-hsp: Reject duplicate mailbox clients
From: Jiangtian Feng
Date: Thu Dec 03 2026 - 03:34:07 EST
These two small patches prevent a repeated mailbox request from changing
the state of an active client.
The doorbell patch rejects a duplicate request while chan->cl is live.
Using the client pointer rather than the channel pointer alone preserves
retries after a failed startup while keeping exclusive ownership during
normal use.
The shared mailbox patch rejects an occupied channel before changing
mb->ops or mb->producer, preserving the original client's direction,
width and interrupt mask.
The failed-startup channel-slot lifetime issue is pre-existing and is
intentionally outside this small series.
Validation:
- Independent static review found no High/Medium issues.
- W=1 tegra-hsp.o builds after each patch.
- Complete ARM64 Image build; size 44,833,280 bytes, SHA-256
f972a099b2da6e801c41d25558c3803af604bdbb1113adfdeda931b6e94e0d28.
- Fixes tags were verified against full repository history.
- Final patches have no checkpatch warnings; only the submitter's DCO
sign-off is pending.
NOT_RUN:
- Repeated client, BPMP, startup failure/rebind and IRQ runtime testing.
- NOIRQ suspend/resume and hardware fault injection.
Jiangtian Feng (2):
mailbox: tegra-hsp: Reject duplicate doorbell clients
mailbox: tegra-hsp: Reject duplicate shared mailbox clients
drivers/mailbox/tegra-hsp.c | 9 +++++++++
1 file changed, 9 insertions(+)
--
2.47.3