Skip to content
Commit 230378ae authored by Wealian Liao's avatar Wealian Liao Committed by Maureen Helm
Browse files

driver: uart_npcx: Fix uart to use PM constrain



The device PM callback needs to be used only to suspend/resume devices.
If the system cannot be suspended because UART is in a particular
state, the pm_constraint_set/release API should be used. For NPCX UART,
the chip can't enter low power idle state until UART completes the data
transmission.
This commit changes NPCX UART to use pm_constraint_set/release & fixes
UART lost data from low power idle.

Fix #40621

Signed-off-by: default avatarWealian Liao <WHLIAO@nuvoton.com>
Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
parent cb410abe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment