]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: sr9700: remove code to drive nonexistent MII
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Tue, 13 Jan 2026 04:06:38 +0000 (20:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 17 Jan 2026 23:21:45 +0000 (15:21 -0800)
commit171e8ed48276dff973390c5aa3c9e93c0e903725
tree5fbd1fb55abfb8505b61255409657910ee49f42b
parentb790404680169591ec2cd9fd356cb9d0d3cbe6bd
net: usb: sr9700: remove code to drive nonexistent MII

This device does not have a MII, even though the driver
contains code to drive one (because it originated as a copy of the
dm9601 driver). It also only supports 10Mbps half-duplex
operation (the DM9601 registers to set the speed/duplex mode
are read-only). Remove all MII-related code and implement
sr9700_get_link_ksettings which returns hardcoded correct
information for the link speed and duplex mode. Also add
announcement of the link status like many other Ethernet
drivers have.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260113040649.54248-1-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/sr9700.c
drivers/net/usb/sr9700.h