Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a4b4f042 authored by Karthik Parsha's avatar Karthik Parsha
Browse files

qcom: rpm-smd: Force smd channel update in interrupt lock context



In the power collapse path, when checking for availability of an ack from
rpm, use smd_is_pkt_avail. This api is designed to be used with
interrupts disabled, and will be able to poll for acks from rpm.

Wait for upto 500us to receive this ack. If in 500us, an ack is not
received generate a kernel panic.

The rpm-smd receive buffer is able to hold a limited number of packets.
Reduce the threshold of sent packets, such that apps will process received
packets in the receive buffer after 10 sent packets. This will ensure that
the receive buffer does not overflow even if the rpm sends bigger nack
packets along with ack packets.

Change-Id: Ie99d0bb9ae17445872e0c37f0797cac3a221daa4
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent 512fe370
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment