Commit 8865d22
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>1 parent 044f2fb commit 8865d22
1 file changed
Lines changed: 18 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2424 | 2424 | | |
2425 | 2425 | | |
2426 | 2426 | | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
2431 | | - | |
2432 | 2427 | | |
2433 | 2428 | | |
2434 | 2429 | | |
| |||
2897 | 2892 | | |
2898 | 2893 | | |
2899 | 2894 | | |
2900 | | - | |
2901 | | - | |
2902 | | - | |
2903 | | - | |
2904 | | - | |
2905 | 2895 | | |
2906 | 2896 | | |
2907 | 2897 | | |
| |||
5878 | 5868 | | |
5879 | 5869 | | |
5880 | 5870 | | |
5881 | | - | |
5882 | | - | |
5883 | | - | |
5884 | 5871 | | |
5885 | 5872 | | |
5886 | 5873 | | |
| |||
7236 | 7223 | | |
7237 | 7224 | | |
7238 | 7225 | | |
7239 | | - | |
7240 | | - | |
| 7226 | + | |
| 7227 | + | |
| 7228 | + | |
| 7229 | + | |
| 7230 | + | |
| 7231 | + | |
| 7232 | + | |
| 7233 | + | |
| 7234 | + | |
7241 | 7235 | | |
7242 | 7236 | | |
7243 | 7237 | | |
7244 | 7238 | | |
7245 | 7239 | | |
7246 | | - | |
7247 | | - | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
| 7243 | + | |
| 7244 | + | |
| 7245 | + | |
| 7246 | + | |
| 7247 | + | |
| 7248 | + | |
7248 | 7249 | | |
7249 | 7250 | | |
7250 | 7251 | | |
| |||
0 commit comments