mbox series

[net,v4,0/3] Limit devicetree parameters to hardware capability

Message ID 20250127013820.2941044-1-hayashi.kunihiko@socionext.com (mailing list archive)
Headers show
Series Limit devicetree parameters to hardware capability | expand

Message

Kunihiko Hayashi Jan. 27, 2025, 1:38 a.m. UTC
This series includes patches that checks the devicetree properties,
the number of MTL queues and FIFO size values, and if these specified
values exceed the value contained in hardware capabilities, limit to
the values from the capabilities. Do nothing if the capabilities don't
have any specified values.

And this sets hardware capability values if FIFO sizes are not specified
and removes redundant lines.

Changes since v3:
- Match the order of conditions to warning messages

Changes since v2:
- Check if there are hardware capability values
- Add an error message when FIFO size can't be specified
- Change each position of specified values in error messages 

Changes since v1:
- Move the check for FIFO size and MTL queues to initializing phase
- Move zero check lines to initializing phase
- Use hardware capabilities instead of defined values
- Add warning messages if the values exceeds
- Add Fixes: lines

Kunihiko Hayashi (3):
  net: stmmac: Limit the number of MTL queues to hardware capability
  net: stmmac: Limit FIFO size by hardware capability
  net: stmmac: Specify hardware capability value when FIFO size isn't
    specified

 .../net/ethernet/stmicro/stmmac/stmmac_main.c | 57 ++++++++++++++-----
 1 file changed, 44 insertions(+), 13 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 28, 2025, 12:20 p.m. UTC | #1
Hello:

This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Mon, 27 Jan 2025 10:38:17 +0900 you wrote:
> This series includes patches that checks the devicetree properties,
> the number of MTL queues and FIFO size values, and if these specified
> values exceed the value contained in hardware capabilities, limit to
> the values from the capabilities. Do nothing if the capabilities don't
> have any specified values.
> 
> And this sets hardware capability values if FIFO sizes are not specified
> and removes redundant lines.
> 
> [...]

Here is the summary with links:
  - [net,v4,1/3] net: stmmac: Limit the number of MTL queues to hardware capability
    https://git.kernel.org/netdev/net/c/f5fb35a3d6b3
  - [net,v4,2/3] net: stmmac: Limit FIFO size by hardware capability
    https://git.kernel.org/netdev/net/c/044f2fbaa272
  - [net,v4,3/3] net: stmmac: Specify hardware capability value when FIFO size isn't specified
    https://git.kernel.org/netdev/net/c/8865d22656b4

You are awesome, thank you!