diff options
| author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2025-01-27 10:38:19 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:58:07 +0100 |
| commit | b92942e6a457a7c6dbea757c4b91af0da3828c0e (patch) | |
| tree | e9fe7f7d14b80ab5e3853ccf0ccc1d47e089fcbc /scripts/stackusage | |
| parent | 56380f4a0f544bf5e35433fb0c131011fc509bc9 (diff) | |
| download | linux-b92942e6a457a7c6dbea757c4b91af0da3828c0e.tar.gz linux-b92942e6a457a7c6dbea757c4b91af0da3828c0e.tar.bz2 linux-b92942e6a457a7c6dbea757c4b91af0da3828c0e.zip | |
net: stmmac: Limit FIFO size by hardware capability
[ Upstream commit 044f2fbaa2725696ecbf1f02ba7ab0a8ccb7e1ae ]
Tx/Rx FIFO size is specified by the parameter "{tx,rx}-fifo-depth" from
stmmac_platform layer.
However, these values are constrained by upper limits determined by the
capabilities of each hardware feature. There is a risk that the upper
bits will be truncated due to the calculation, so it's appropriate to
limit them to the upper limit values and display a warning message.
This only works if the hardware capability has the upper limit values.
Fixes: e7877f52fd4a ("stmmac: Read tx-fifo-depth and rx-fifo-depth from the devicetree")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
