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

Skip to content
Commit 8567d233 authored by Panicker Harish's avatar Panicker Harish
Browse files

serial: msm_geni_serial: Update wakeup byte handling mechanism



In current implementation, after vote_clock_off we check for wakeup
byte in UART Rx buffer. If wakeup byte is present, we send it to BT
Application else drop the rx bytes until wakeup byte 0xFD is received.
The problem with this implementation was if there was out of sync
between Tx and Rx and a packet was received after clock off, it
was checked for wakeup byte which resulted in drop of some rx bytes.

To mitigate above scenario change handling of wakeup byte mechanism as
below:
1. Check the rx packet for wakeup_byte only after runtime suspend
instead of vote clock off.
2. Check only the first byte of RX buffer.
3. If wakeup byte is received send it to BT appplication.
4. Else drop the whole bytes.

Change-Id: I1fea3b99193887d05ee7756df933abd94b6d71d3
Signed-off-by: default avatarPrasanna S <quic_prass@quicinc.com>
Signed-off-by: default avatarPanicker Harish <quic_pharish@quicinc.com>
parent 6f5054ce
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