net: renesas: rswitch: Add "max-speed" handling
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 1 Feb 2023 13:14:54 +0000 (22:14 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:19:40 +0000 (09:19 +0000)
commit04c77d9130b693e56a477364af1e1be4379b1b49
treeffb4fb4daaa733d00a8b1fb29d0fa76975071fc4
parent5cb630925b49dd13bf3aa43f299b11615c8fe9cd
net: renesas: rswitch: Add "max-speed" handling

The previous code set the speed by the interface mode of PHY.
Also this hardware has a restriction which cannot change the speed
at runtime. To use other speed, add "max-speed" handling to set
each port's speed if needed.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/rswitch.c