[PATCH net-next v2 0/3] net: pse-pd: realtek-pse-mcu: establish power management configuration

From
Jonas Jelonek <hidden>
Date
2026-11-16 11:52:53
Also in
linux-devicetree, lkml
Realtek PSE MCUs may start with a power-management configuration inherited
from firmware defaults or previous host configuration. This series
establishes an explicit configuration during probe: dynamic power management
with port priorities and, when a VMAIN regulator is provided, an aggregate
limit matching the board's usable PoE allowance.

The budget and management mode are configured before ungating ports.
VMAIN is used only for budget accounting, with managed reservation cleanup;
the rail is available independently of the host driver.

Validation includes W=1 builds and checkpatch.pl. OpenCode assisted with
review, implementation refinements and drafting this cover letter.

---
Changes in v2:
- Move the binding first and clarify accounting-only use of VMAIN.
- Preserved Acked-by from Rob and Reviewed-by from Kory
- Set the mode directly in the helper and shorten names to "mgmt".
- Remove explicit VMAIN enable/disable; retain managed budget cleanup.
- Drop the unrelated global-disable teardown patch.

v1: https://lore.kernel.org/netdev/20261103220312.860629-1-jonas@jonasjelonek.de/ (local)

---
Jonas Jelonek (2):
  dt-bindings: net: pse-pd: realtek,pse-mcu: add VMAIN supply
  net: pse-pd: realtek-pse-mcu: configure global power budget

Russell Senior (1):
  net: pse-pd: realtek-pse-mcu: ensure MCU does dynamic power management

 .../net/pse-pd/realtek,pse-mcu-gen1.yaml      |   9 +
 drivers/net/pse-pd/realtek-pse-mcu-core.c     | 155 +++++++++++++++++-
 drivers/net/pse-pd/realtek-pse-mcu.h          |   3 +
 3 files changed, 164 insertions(+), 3 deletions(-)


base-commit: 7ccc5e05043b1bb84326b19a2b05938d8f7a2ae6
-- 
2.53.0
Thread (4 messages) 4 messages, 1 author, last reply 12h ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help