summaryrefslogtreecommitdiff
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-06-29 14:20:03 +0200
committerJakub Kicinski <kuba@kernel.org>2022-07-01 19:16:00 -0700
commit90c74f4d90ad769fc84e0b91a08b5514d83aa683 (patch)
tree31b0e7a71ee3c3daa269d73b8b07f8b17f07b93b /drivers/net/usb/usbnet.c
parentb14056914357beee6a84f6ff1b9195f4659fab9d (diff)
downloadlinux-90c74f4d90ad769fc84e0b91a08b5514d83aa683.tar.gz
linux-90c74f4d90ad769fc84e0b91a08b5514d83aa683.tar.bz2
linux-90c74f4d90ad769fc84e0b91a08b5514d83aa683.zip
net: pcs: rzn1-miic: update speed only if interface is changed
As stated by Russel King, miic_config() can be called as a result of ethtool setting the configuration while the link is already up. Since the speed is also set in this function, it could potentially modify the current speed that is set. This will only happen if there is no PHY present and we aren't using fixed-link mode. Handle that by storing the current interface mode in the miic_port structure and update the speed only if the interface mode is going to be changed. Signed-off-by: Clément Léger <clement.leger@bootlin.com> Link: https://lore.kernel.org/r/20220629122003.189397-1-clement.leger@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
0 files changed, 0 insertions, 0 deletions