Skip to content

mailbox: ti-msgmgr: Fixes for polled rx and trailing bytes

Beleswar Padhi lkml 3 versions – Applied

Status from this message: Applied to mailbox/for-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2mailbox: ti-msgmgr: Do not report rx poll timeout as a send failuredrivers/mailbox/ti-msgmgr.c+15 -30 replies
2/2mailbox: ti-msgmgr: Read exact number of trailing message bytesdrivers/mailbox/ti-msgmgr.c+10 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrew Davis
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] mailbox: ti-msgmgr: Fixes for polled rx and trailing bytes

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.

v3: Changelog:
1. Add Fixes: tag in [PATCH v3 2/2].

Link to v2:
https://lore.kernel.org/all/[email protected]/

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

Link to v1:
https://lore.kernel.org/all/[email protected]/#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(-)
Signature · 1 line
2.34.1