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

Skip to content
Commit 612c0ebc authored by Panicker Harish's avatar Panicker Harish
Browse files

serial: msm_geni_serial: Change wakeup interrupt handling mechanism



In current implementation upon 3 wakeup interrupts,
uart driver is injecting 0xFD wakeup byte to BT.
If there are spurious wakeup interrupts, 0xFD is still
injected which is unexpected by BT host and BT assert
is seen.

To mitigate above scenario change handling of wakeup
interrupt mechanism as below:
1. Upon wakeup interrupt wake up UART driver out of suspend
2. Check if UART driver received the wakeup_byte
3. If wakeup byte is received send it to BT appplication
4. Else drop the rx bytes until wakeup byte 0xFD is received
5. If no wakeup byte received go back to suspend.

Change-Id: Ia0e2254aea748ebfab3ea3cec69708361cc20cef
Signed-off-by: default avatarVisweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: default avatarPanicker Harish <quic_pharish@quicinc.com>
parent 289541f6
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