You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2025/03/17 11:22:10 UTC

(nuttx) branch master updated: esp32[s2|s3]: Add number of IRQ status lists for PHY initialization configuration

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b60b54b476 esp32[s2|s3]: Add number of IRQ status lists for PHY initialization configuration
b60b54b476 is described below

commit b60b54b47655ef64c60a43fb4f632a5cf586f37b
Author: chenwen@espressif.com <ch...@espressif.com>
AuthorDate: Mon Feb 24 15:30:29 2025 +0800

    esp32[s2|s3]: Add number of IRQ status lists for PHY initialization configuration
    
    The current default number of IRQ state lists for PHY initialization is 3 (i.e. NR_IRQSTATE_FLAGS).
    When calling in a nested manner, the number of times the concurrent behavior enters the critical section exceeds 3, which will trigger an assert crash.
    Therefore, the size of NR_IRQSTATE_FLAGS needs to be increased, this PR makes NR_IRQSTATE_FLAGS configurable.
    Please refer to the changes of esp-hal-3rdparty: https://github.com/espressif/esp-hal-3rdparty/commit/5d4868f08b94efbe76383382f7a843c6cdeaf811
    
    Signed-off-by: chenwen@espressif.com <ch...@espressif.com>
---
 arch/xtensa/src/common/espressif/Kconfig | 7 +++++++
 arch/xtensa/src/esp32/Make.defs          | 2 +-
 arch/xtensa/src/esp32s2/Make.defs        | 2 +-
 arch/xtensa/src/esp32s3/Make.defs        | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/arch/xtensa/src/common/espressif/Kconfig b/arch/xtensa/src/common/espressif/Kconfig
index 88f71c879b..141078a70b 100644
--- a/arch/xtensa/src/common/espressif/Kconfig
+++ b/arch/xtensa/src/common/espressif/Kconfig
@@ -748,6 +748,13 @@ config ESPRESSIF_WIFI_WLAN_BUFFER_OPTIMIZATION
 
 endmenu # ESPRESSIF_WIFI
 
+config ESP_PHY_IRQSTATE_FLAGS_NUMBER
+	int "Number of IRQ status lists for PHY initialization"
+	default 3
+	---help---
+		The number of IRQ status lists to be saved when PHY enter a critical state multiple times
+		at the same time during initialization.
+
 menu "BLE Configuration"
 	depends on ESPRESSIF_BLE
 
diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs
index 873bf50f7b..54a3880c5d 100644
--- a/arch/xtensa/src/esp32/Make.defs
+++ b/arch/xtensa/src/esp32/Make.defs
@@ -228,7 +228,7 @@ endif
 
 ESP_HAL_3RDPARTY_REPO   = esp-hal-3rdparty
 ifndef ESP_HAL_3RDPARTY_VERSION
-	ESP_HAL_3RDPARTY_VERSION = e5cef265cca9d272c428d210453d574bcc25c5f4
+	ESP_HAL_3RDPARTY_VERSION = 5d4868f08b94efbe76383382f7a843c6cdeaf811
 endif
 
 ifndef ESP_HAL_3RDPARTY_URL
diff --git a/arch/xtensa/src/esp32s2/Make.defs b/arch/xtensa/src/esp32s2/Make.defs
index b1423db2c1..f84c42f805 100644
--- a/arch/xtensa/src/esp32s2/Make.defs
+++ b/arch/xtensa/src/esp32s2/Make.defs
@@ -147,7 +147,7 @@ endif
 
 ESP_HAL_3RDPARTY_REPO   = esp-hal-3rdparty
 ifndef ESP_HAL_3RDPARTY_VERSION
-	ESP_HAL_3RDPARTY_VERSION = 2388ce5663ad4ffe7aecc8ad8b73851e9f0dcc9b
+	ESP_HAL_3RDPARTY_VERSION = 5d4868f08b94efbe76383382f7a843c6cdeaf811
 endif
 
 ifndef ESP_HAL_3RDPARTY_URL
diff --git a/arch/xtensa/src/esp32s3/Make.defs b/arch/xtensa/src/esp32s3/Make.defs
index 8cb8077d0d..8504a61fb2 100644
--- a/arch/xtensa/src/esp32s3/Make.defs
+++ b/arch/xtensa/src/esp32s3/Make.defs
@@ -225,7 +225,7 @@ endif
 
 ESP_HAL_3RDPARTY_REPO = esp-hal-3rdparty
 ifndef ESP_HAL_3RDPARTY_VERSION
-	ESP_HAL_3RDPARTY_VERSION = e5cef265cca9d272c428d210453d574bcc25c5f4
+	ESP_HAL_3RDPARTY_VERSION = 5d4868f08b94efbe76383382f7a843c6cdeaf811
 endif
 
 ifndef ESP_HAL_3RDPARTY_URL