mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mailbox: ti-msgmgr: Fixes for polled rx and trailing bytes
@ 2026-09-30 14:38 Beleswar Padhi
  2026-09-30 14:38 ` [PATCH v2 1/2] mailbox: ti-msgmgr: Do not report rx poll timeout as a send failure Beleswar Padhi
  2026-09-30 14:38 ` [PATCH v2 2/2] mailbox: ti-msgmgr: Read exact number of trailing message bytes Beleswar Padhi
  0 siblings, 2 replies; 3+ messages in thread
From: Beleswar Padhi @ 2026-09-30 14:38 UTC (permalink / raw)
  To: jassisinghbrar, linux-kernel; +Cc: afd, u-kumar1, nm, vigneshr, b-padhi

This series fixes two issues in ti_msgmgr_send_data(), found while
refactoring the ti-msgmgr mbox client (TI-SCI).

Patch 1 fixes a duplicate message transmission in polled rx mode.
Patch 2 stops reading past the end of the message buffer when the
message length is not a multiple of 4. This is a preparatory patch for
when the mbox client can send data which is not a multiple of 4.

This series is independent and can be applied directly.

v2: Changelog:
1. Use memcpy() to construct the trailing word to handle host endianness
(Sashiko bot)

Link to v1:
https://lore.kernel.org/all/20260929200159.4033010-1-b-padhi@ti.com/#t

Testing Done:
 - Boot tested on all TI K3 SoCs.
 - Boot tested on keystone K2G EVMs.
 - Tested that these patches do not introduce any new warning or error.

Logs:
https://gist.github.com/3V3RYONE/18d0c3ce912ab208b53b5887435ff09a

Thanks,
Beleswar

Beleswar Padhi (2):
  mailbox: ti-msgmgr: Do not report rx poll timeout as a send failure
  mailbox: ti-msgmgr: Read exact number of trailing message bytes

 drivers/mailbox/ti-msgmgr.c | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-30 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 14:38 [PATCH v2 0/2] mailbox: ti-msgmgr: Fixes for polled rx and trailing bytes Beleswar Padhi
2026-09-30 14:38 ` [PATCH v2 1/2] mailbox: ti-msgmgr: Do not report rx poll timeout as a send failure Beleswar Padhi
2026-09-30 14:38 ` [PATCH v2 2/2] mailbox: ti-msgmgr: Read exact number of trailing message bytes Beleswar Padhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®