Skip to content
Commit f52ff1a7 authored by Tim Lin's avatar Tim Lin Committed by Carles Cufí
Browse files

drivers/serial: uart_ns16550: add power management constraint API



Instead of busy wait until completed transaction, the constraint set
is used before enabling tx interrupt to not allow system to enter
suspend when tx is transmitting.

Application defined policy should use the pm_constraint_get function
to check if given state is enabled and could be used.

TEST=Test on hayato board(soc:it8xxx2), the logs print normally before
system enters suspend.

Signed-off-by: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent ef6298f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment