diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2025-01-27 04:38:20 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-01-28 14:44:43 +0300 |
commit | 8865d22656b442b8d0fb019e6acb2292b99a9c3c (patch) | |
tree | 857f3b6b975a29b85e1aa28cd85130e8d99c889b /tools/lib/api/debug-internal.h | |
parent | 044f2fbaa2725696ecbf1f02ba7ab0a8ccb7e1ae (diff) | |
download | linux-8865d22656b442b8d0fb019e6acb2292b99a9c3c.tar.xz |
net: stmmac: Specify hardware capability value when FIFO size isn't specified
When Tx/Rx FIFO size is not specified in advance, the driver checks if
the value is zero and sets the hardware capability value in functions
where that value is used.
Consolidate the check and settings into function stmmac_hw_init() and
remove redundant other statements.
If FIFO size is zero and the hardware capability also doesn't have upper
limit values, return with an error message.
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>
Diffstat (limited to 'tools/lib/api/debug-internal.h')
0 files changed, 0 insertions, 0 deletions