mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
796e0dc50d
PD#SWPL-237104 Problem: In mailbox devfs driver, the received data packet is saved in a global buffer, when the next data packet is received while the previous data packet in global buffer has not been read yet, the previous data packet in global buffer may be overwritten Solution: Add an RX ring buffer for each process in mailbox devfs driver, the data packets received will be saved in this ring buffer orderly, and they will be read orderly. This method can avoid the data packets in ring buffer being overwritten by the next packet. The RX ring buffer length can be configured Verify: SC2 Change-Id: I926eeccd6a768aa237208053eab88779047f43aa Signed-off-by: Yao Jie <jie.yao@amlogic.com>