OSDN Git Service

net: sfp: get rid of DM7052 hack when enabling high power
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 21 Oct 2022 15:10:09 +0000 (16:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Oct 2022 04:06:24 +0000 (21:06 -0700)
commitbd1432f68ddc28bf3ed6e86b16ed29c0b406f91f
tree934ec122e4a32140b8a54999c4deb1b609d3dd1e
parenta3c536fc75803b298fd6ba75af33eecf43d31785
net: sfp: get rid of DM7052 hack when enabling high power

Since we no longer mis-detect high-power mode with the DM7052 module,
we no longer need the hack in sfp_module_enable_high_power(), and can
now switch this to use sfp_modify_u8().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c