From b4b07ce6bd1bc2226c3c2fea9e64a45fb22cab48 Mon Sep 17 00:00:00 2001 From: dulibo1 Date: Wed, 21 Feb 2024 17:08:43 +0800 Subject: [PATCH] PM:use CONFIG_SERIAL_PM_ACTIVITY_PRIORITY == 0 disable pm_activity which need by bl616 Signed-off-by: dulibo1 --- drivers/serial/serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index ef00bfa1df..c8a15797f1 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -1942,8 +1942,10 @@ void uart_datareceived(FAR uart_dev_t *dev) if (dev->isconsole) { +# if CONFIG_SERIAL_PM_ACTIVITY_PRIORITY > 0 pm_activity(CONFIG_SERIAL_PM_ACTIVITY_DOMAIN, CONFIG_SERIAL_PM_ACTIVITY_PRIORITY); +# endif } #endif }