From 9cd933e5b010bd76ac5a2f17b23cef00a861ad44 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 17 Jun 2025 22:01:04 +0530 Subject: [PATCH] modules: nrf_wifi: Improve power down sequence Swap the order, IOVDD should be powered first and then BUCKEN. Signed-off-by: Chaitanya Tata --- modules/nrf_wifi/bus/rpu_hw_if.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/nrf_wifi/bus/rpu_hw_if.c b/modules/nrf_wifi/bus/rpu_hw_if.c index 5dd71a86de2..62291251fb7 100644 --- a/modules/nrf_wifi/bus/rpu_hw_if.c +++ b/modules/nrf_wifi/bus/rpu_hw_if.c @@ -260,18 +260,18 @@ static int rpu_pwroff(void) { int ret; - ret = gpio_pin_set_dt(&bucken_spec, 0); /* BUCKEN = 0 */ - if (ret) { - LOG_ERR("BUCKEN GPIO set failed..."); - return ret; - } - ret = gpio_pin_set_dt(&iovdd_ctrl_spec, 0); /* IOVDD CNTRL = 0 */ if (ret) { LOG_ERR("IOVDD GPIO set failed..."); return ret; } + ret = gpio_pin_set_dt(&bucken_spec, 0); /* BUCKEN = 0 */ + if (ret) { + LOG_ERR("BUCKEN GPIO set failed..."); + return ret; + } + return ret; }