[PATCH net v2 0/3] Limit devicetree parameters to hardware capability
From: Kunihiko Hayashi
Date: Mon Jan 20 2025 - 23:41:55 EST
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 the hardware capabilities, limit to
the values from the capabilities.
And this sets hardware capability values if FIFO sizes are not specified
and removes redundant lines.
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 | 43 +++++++++++++------
1 file changed, 30 insertions(+), 13 deletions(-)
--
2.25.1