Commit 59c3d6c
net: stmmac: Fix max-speed being ignored on queue re-init
It's possible to have the maximum link speed being artificially limited on
the platform-specific basis. It's done either by setting up the
plat_stmmacenet_data::max_speed field or by specifying the "max-speed"
DT-property. In such cases it's required that any specific
MAC-capabilities re-initializations would take the limit into account. In
particular the link speed capabilities may change during the number of
active Tx/Rx queues re-initialization. But the currently implemented
procedure doesn't take the speed limit into account.
Fix that by calling phylink_limit_mac_speed() in the
stmmac_reinit_queues() method if the speed limitation was required in the
same way as it's done in the stmmac_phy_setup() function.
Fixes: 95201f3 ("net: stmmac: update MAC capabilities when tx queues are updated")
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 0ebd96f commit 59c3d6c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7328 | 7328 | | |
7329 | 7329 | | |
7330 | 7330 | | |
| 7331 | + | |
7331 | 7332 | | |
7332 | 7333 | | |
7333 | 7334 | | |
| |||
7343 | 7344 | | |
7344 | 7345 | | |
7345 | 7346 | | |
| 7347 | + | |
| 7348 | + | |
| 7349 | + | |
| 7350 | + | |
7346 | 7351 | | |
7347 | 7352 | | |
7348 | 7353 | | |
| |||
0 commit comments