Skip to content

Commit

Permalink
Merge branch 'bugfix/further_fix_part_of_modem_not_reset_when_power_o…
Browse files Browse the repository at this point in the history
…n' into 'master'

Coexistence: remove reset for esp32's modem when PU to avoid SoftAP fail to work in some cases

Closes IDFCI-1493

See merge request espressif/esp-idf!20679
  • Loading branch information
MaxwellAlan committed Oct 20, 2022
2 parents be2b57f + 0d8ece5 commit 8cb934a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/esp_phy/src/phy_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,7 @@ void IRAM_ATTR esp_wifi_bt_power_domain_on(void)
_lock_acquire(&s_wifi_bt_pd_controller.lock);
if (s_wifi_bt_pd_controller.count++ == 0) {
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_WIFI_FORCE_PD);
#if CONFIG_IDF_TARGET_ESP32
DPORT_SET_PERI_REG_MASK(DPORT_CORE_RST_EN_REG, MODEM_RESET_FIELD_WHEN_PU);
DPORT_CLEAR_PERI_REG_MASK(DPORT_CORE_RST_EN_REG, MODEM_RESET_FIELD_WHEN_PU);
#else
#if !CONFIG_IDF_TARGET_ESP32
SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, MODEM_RESET_FIELD_WHEN_PU);
CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, MODEM_RESET_FIELD_WHEN_PU);
#endif
Expand Down

0 comments on commit 8cb934a

Please sign in to comment.