Commit Graph
24961 Commits
Author SHA1 Message Date
J. Nick Koston 3f74f4216c Merge remote-tracking branch 'upstream/socket-lwip-raw-udp' into integration 2026-03-16 16:39:04 -10:00
J. Nick Koston b333bb76e4 Merge branch 'dev' into socket-lwip-raw-udp 2026-03-16 16:36:46 -10:00
J. Nick Koston 273637b6d7 tweak 2026-03-16 16:35:32 -10:00
J. Nick Koston 3d77e95b11 merge 2026-03-16 15:47:32 -10:00
J. Nick Koston eb34cf0142 Merge remote-tracking branch 'upstream/esp32-sram1-as-iram' into integration 2026-03-16 15:26:12 -10:00
J. Nick Koston bd3287a554 [esp32] Add sram1_as_iram option for +40KB IRAM on original ESP32
Add a new `sram1_as_iram` option under `esp32 > framework > advanced`
that enables CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM, reclaiming
40KB of SRAM1 memory as additional IRAM on the original ESP32.

This requires a bootloader from ESP-IDF v5.1 or later. USB flashing
updates the bootloader automatically, but OTA does not. At boot,
ESPHome now detects the bootloader version and suggests enabling
this option when the bootloader is compatible.
2026-03-16 15:24:12 -10:00
J. Nick Koston 03db9d7ada Merge remote-tracking branch 'upstream/esp32-sram1-as-iram' into integration 2026-03-16 15:16:58 -10:00
J. Nick Koston 6423f9832f [esp32] Add sram1_as_iram option for +40KB IRAM on original ESP32
Add a new `sram1_as_iram` option under `esp32 > framework > advanced`
that enables CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM, reclaiming
40KB of SRAM1 memory as additional IRAM on the original ESP32.

This requires a bootloader from ESP-IDF v5.1 or later. USB flashing
updates the bootloader automatically, but OTA does not. At boot,
ESPHome now detects the bootloader version and suggests enabling
this option when the bootloader is compatible.
2026-03-16 15:15:42 -10:00
Jesse Hills bba11b3b1e Merge branch 'beta' into dev 2026-03-17 14:14:03 +13:00
Jesse Hills a40d97f346 Merge pull request #14873 from esphome/bump-2026.3.0b3
2026.3.0b3
2026.3.0b3
2026-03-17 14:13:29 +13:00
J. Nick Koston 0a67cf4496 Merge remote-tracking branch 'upstream/esp32-sram1-as-iram' into integration 2026-03-16 15:12:57 -10:00
J. Nick Koston d7dc641fcb [esp32] Add sram1_as_iram option for +40KB IRAM on original ESP32
Add a new `sram1_as_iram` option under `esp32 > framework > advanced`
that enables CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM, reclaiming
40KB of SRAM1 memory as additional IRAM on the original ESP32.

This requires a bootloader from ESP-IDF v5.1 or later. USB flashing
updates the bootloader automatically, but OTA does not. At boot,
ESPHome now detects the bootloader version and suggests enabling
this option when the bootloader is compatible.
2026-03-16 15:12:32 -10:00
J. Nick Koston fe759e613e Merge remote-tracking branch 'upstream/esp32-sram1-as-iram' into integration 2026-03-16 14:56:49 -10:00
J. Nick Koston 9c81c0ab53 [esp32] Add sram1_as_iram option for +40KB IRAM on original ESP32
Add a new `sram1_as_iram` option under `esp32 > framework > advanced`
that enables CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM, reclaiming
40KB of SRAM1 memory as additional IRAM on the original ESP32.

This requires a bootloader from ESP-IDF v5.1 or later. USB flashing
updates the bootloader automatically, but OTA does not. At boot,
ESPHome now detects the bootloader version and suggests enabling
this option when the bootloader is compatible.
2026-03-16 14:54:20 -10:00
J. Nick Koston 8e8faaa983 Merge remote-tracking branch 'upstream-ssh/api-overflow-buffer-cleanup' into integration 2026-03-16 13:11:13 -10:00
J. Nick Koston 1ecbd28742 Address review: restore queue-full log, fix power-of-2 comment
- Add HELPER_LOG when overflow buffer is full and connection is dropped
- Clarify comment: defaults are power of 2 (not a requirement for users)
2026-03-16 13:09:41 -10:00
J. Nick Koston 61cc3022cb Address review: save errno before use, fix docs, add missing include
- Save errno into local before check_socket_write_err_ and HELPER_LOG
  to avoid potential clobbering between reads
- Update try_drain() doc: 0 means all-drained or no-progress (callers
  only act on -1)
- Include socket/headers.h explicitly for struct iovec
2026-03-16 13:08:08 -10:00
J. Nick Koston 69956c54a7 fix power of 2 2026-03-16 13:04:29 -10:00
J. Nick Koston 3ac6eb0f5a Address review: only log hard errors, fix try_drain doc comments
- Move HELPER_LOG after errno check so transient WOULD_BLOCK doesn't
  spam very-verbose logs during normal backpressure
- Fix try_drain() docstring: -1 can be EWOULDBLOCK or hard error
  (caller distinguishes via errno), 0 means no progress (not would-block)
2026-03-16 13:01:42 -10:00
J. Nick Koston 1450d1e487 Merge branch 'dev' into api-overflow-buffer-cleanup 2026-03-16 12:51:38 -10:00
Jesse Hills d6c67d5c35 Bump version to 2026.3.0b3 2026-03-17 11:45:03 +13:00
Jonathan Swoboda 0816b27398 [core] Support both dot and dash separators in Version.parse (#14858) 2026-03-17 11:45:03 +13:00
Jonathan Swoboda 9133582aa0 [as3935] Fix ENERGY_MASK dropping bit 4 of lightning energy MMSB (#14861) 2026-03-17 11:45:02 +13:00
Jonathan Swoboda f36b0fcb61 [am43] Fix battery update throttle using wrong type (#14864) 2026-03-17 11:45:02 +13:00
Jonathan Swoboda bb0a5dc8a8 [lilygo_t5_47] Fix Y coordinate mapping and clamp touch point count (#14865) 2026-03-17 11:45:02 +13:00
Jonathan Swoboda 0c260e483e [gpio][dallas_temp] Fix one_wire read64() and DS18S20 division by zero (#14866) 2026-03-17 11:45:02 +13:00
tomaszduda23 b8ce907976 [ble_nus] fix uart debug (#14850) 2026-03-17 11:45:02 +13:00
dependabot[bot] ffce637ea5 Bump aioesphomeapi from 44.5.1 to 44.5.2 (#14849)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-17 11:45:02 +13:00
d6fba39037 [runtime_image] Add esp-dsp dependency for JPEGDEC SIMD on ESP32 (#14840)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-03-17 11:45:02 +13:00
J. Nick Koston 5d5c2723b2 [fastled] Include esp_lcd IDF component for ESP32-S3 compatibility (#14839) 2026-03-17 11:45:02 +13:00
guillempagesandJonathan Swoboda 06d1498c47 [runtime_image] Update jpegdec lib version (#14726)
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
2026-03-17 11:45:02 +13:00
J. Nick Koston e2a68cc2d3 Simplify: return drain result directly in loop() 2026-03-16 12:44:33 -10:00
J. Nick Koston 9f774b3827 Inline empty() fast path, out-of-line drain+error handling
Keep the cheap overflow_buf_.empty() check inline at all call sites.
Move try_drain + HELPER_LOG + error handling into a single out-of-line
drain_overflow_and_handle_errors_() used by both write_raw_ and the
subclass loop() methods. Eliminates the duplicated drain logic.
2026-03-16 12:43:17 -10:00
J. Nick Koston ad427e1635 tune 2026-03-16 12:36:52 -10:00
J. Nick Koston 848b1a303d Restore HELPER_LOG in write_raw_ error paths 2026-03-16 12:36:24 -10:00
J. Nick Koston b9a688a946 Clean up write_raw_: collapse error checks, remove redundant comments 2026-03-16 12:35:08 -10:00
J. Nick Koston 2009ec5da8 Inline enqueue_or_fail_ at single call site, add branch hints
Only one call site remains after tail-call restructure, so inline it.
Add [[unlikely]]/[[likely]] hints for overflow and error paths.
2026-03-16 12:33:59 -10:00
J. Nick Koston 5bee336a76 Single enqueue_or_fail_ tail call in write_raw_ 2026-03-16 12:31:36 -10:00
J. Nick Koston 1a3c477998 Single enqueue_or_fail_ tail call in write_raw_ 2026-03-16 12:30:47 -10:00
J. Nick Koston e8bf69d1e2 Restructure write_raw_ for single enqueue_or_fail_ tail call 2026-03-16 12:29:39 -10:00
J. Nick Koston 2893788d4b Remove dead iovcnt==0 check — no caller passes 0 2026-03-16 12:28:37 -10:00
Fabrice 2142bc1b76 [mipi_rgb] Make h- and v-sync pins optional (#14870) 2026-03-17 09:25:11 +11:00
J. Nick Koston 067c9ad1fa Force inline Entry::destroy for 16 bytes flash savings 2026-03-16 12:24:40 -10:00
J. Nick Koston 165175eaf3 Restore HELPER_LOG at overflow drain call sites 2026-03-16 12:19:29 -10:00
J. Nick Koston 7846c42730 Rename base loop() to try_drain_overflow_buffer_() inline helper
The base class loop() only drained the overflow buffer. Rename to
make intent clear and inline it so the compiler can optimize across
the call boundary. Make loop() pure virtual since subclasses always
override it.
2026-03-16 12:17:15 -10:00
J. Nick Koston 8a8e05fdb2 Remove remaining sav_errno locals 2026-03-16 12:11:34 -10:00
J. Nick Koston 488c395fbb Simplify: no need to save errno before HELPER_LOG 2026-03-16 12:10:52 -10:00
J. Nick Koston 6e80814507 Propagate drain errors in write_raw_ to preserve original behavior 2026-03-16 12:09:22 -10:00
J. Nick Koston 2d8c7938c2 power of 2 2026-03-16 12:06:52 -10:00
J. Nick Koston 0bccf4a42d power of 2 2026-03-16 12:06:18 -10:00