mbox series

[net-next,v2,00/15] Arrange PSE core and update TPS23881 driver

Message ID 20250109-b4-feature_poe_arrange-v2-0-55ded947b510@bootlin.com (mailing list archive)
Headers show
Series Arrange PSE core and update TPS23881 driver | expand

Message

Kory Maincent Jan. 9, 2025, 10:17 a.m. UTC
From: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>

This patch includes several improvements to the PSE core for better
implementation and maintainability:

- Move the conversion between current limit and power limit from the driver
  to the PSE core.
- Update power and current limit checks.
- Split the ethtool_get_status callback into multiple callbacks.
- Add support for PSE device index.
- Fix PSE PI of_node detection.
- Clean ethtool header of PSE structures.

Additionally, the TPS23881 driver has been updated to support power
limit and measurement features, aligning with the new PSE core
functionalities.

This patch series is the first part of the budget evaluation strategy
support patch series sent earlier:
https://lore.kernel.org/netdev/20250104161622.7b82dfdf@kmaincent-XPS-13-7390/T/#t

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Changes in v2:
- Add a patch to clean ethtool header of PSE structures
- Link to v1: https://lore.kernel.org/r/20250104-b4-feature_poe_arrange-v1-0-92f804bd74ed@bootlin.com

---
Kory Maincent (15):
      net: pse-pd: Remove unused pse_ethtool_get_pw_limit function declaration
      net: pse-pd: Avoid setting max_uA in regulator constraints
      net: pse-pd: Add power limit check
      net: pse-pd: tps23881: Simplify function returns by removing redundant checks
      net: pse-pd: tps23881: Use helpers to calculate bit offset for a channel
      net: pse-pd: tps23881: Add missing configuration register after disable
      net: pse-pd: Use power limit at driver side instead of current limit
      net: pse-pd: Split ethtool_get_status into multiple callbacks
      net: pse-pd: Remove is_enabled callback from drivers
      net: pse-pd: tps23881: Add support for power limit and measurement features
      net: pse-pd: Add support for PSE device index
      net: ethtool: Add support for new PSE device index description
      regulator: core: Resolve supply using of_node from regulator_config
      net: pse-pd: Fix missing PI of_node description
      net: pse-pd: Clean ethtool header of PSE structures

 Documentation/netlink/specs/ethtool.yaml       |   5 +
 Documentation/networking/ethtool-netlink.rst   |   4 +
 drivers/net/pse-pd/pd692x0.c                   | 224 ++++++------
 drivers/net/pse-pd/pse_core.c                  | 207 ++++++++----
 drivers/net/pse-pd/pse_regulator.c             |  23 +-
 drivers/net/pse-pd/tps23881.c                  | 449 ++++++++++++++++++++-----
 drivers/regulator/core.c                       |  39 ++-
 include/linux/ethtool.h                        |  20 --
 include/linux/pse-pd/pse.h                     | 138 ++++++--
 include/uapi/linux/ethtool_netlink.h           |   1 -
 include/uapi/linux/ethtool_netlink_generated.h |   1 +
 net/ethtool/pse-pd.c                           |  12 +-
 12 files changed, 798 insertions(+), 325 deletions(-)
---
base-commit: 849b7ca06e68813750c71c4c204372999cea6d0a
change-id: 20250104-b4-feature_poe_arrange-7ad0462f2afe

Best regards,

Comments

Mark Brown Jan. 9, 2025, 6:50 p.m. UTC | #1
On Thu, 09 Jan 2025 11:17:54 +0100, Kory Maincent wrote:
> This patch includes several improvements to the PSE core for better
> implementation and maintainability:
> 
> - Move the conversion between current limit and power limit from the driver
>   to the PSE core.
> - Update power and current limit checks.
> - Split the ethtool_get_status callback into multiple callbacks.
> - Add support for PSE device index.
> - Fix PSE PI of_node detection.
> - Clean ethtool header of PSE structures.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[13/15] regulator: core: Resolve supply using of_node from regulator_config
        commit: c3ad22ad34f81a8906dba02ea8cc9756d2ce7b50

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark