mirror-linux/drivers/net/phy
Maxime Chevallier 13ff3e7242 net: sfp: return the number of written bytes for smbus single byte access
We expect the SFP write accessors to return the number of written bytes.
We fail to do so for single-byte smbus accesses, which may cause errors
when setting a module's high-power state and for some cotsworks modules.

Let's return the amount of written bytes, as expected.

Fixes: 7662abf4db ("net: phy: sfp: Add support for SMBus module access")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260105151840.144552-1-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-01-06 17:13:34 -08:00
..
aquantia net: phy: aquantia: check for NVMEM deferral 2025-11-28 19:40:42 -08:00
mediatek net: phy: mediatek: fix nvmem cell reference leak in mt798x_phy_calibration 2025-12-22 12:18:54 +01:00
mscc phy: mscc: add HW timestamp configuration reporting 2025-11-26 16:56:34 -08:00
qcom net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
realtek net: phy: RTL8211FVD: Restore disabling of PHY-mode EEE 2025-12-04 12:10:49 +01:00
Kconfig net: phy: microchip_t1s: add support for Microchip LAN867X Rev.D0 PHY 2025-10-31 16:52:05 -07:00
Makefile net: phy: remove mdio_board_info support from phylib 2025-09-17 15:24:01 -07:00
adin.c
adin1100.c net: phy: adin1100: Simplify register value passing 2025-11-20 18:03:59 -08:00
air_en8811h.c net: phy: air_en8811h: Introduce resume/suspend and clk_restore_context to ensure correct CKO settings after network interface reinitialization. 2025-07-01 19:35:43 -07:00
amd.c
as21xxx.c net: phy: as21xxx: better handle PHY HW reset on soft-reboot 2025-08-26 17:09:27 -07:00
ax88796b.c net: phy: ax88796b: Replace hard-coded values with PHY_ID_MATCH_MODEL() 2025-09-22 16:38:59 -07:00
ax88796b_rust.rs
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm-phy-ptp.c net: phy: broadcom: add HW timestamp configuration reporting 2025-11-26 16:56:34 -08:00
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: bcm54811: Fix GMII/MII/MII-Lite selection 2025-10-13 17:36:20 -07:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c net: phy: dp83td510: add MSE interface support for 10BASE-T1L 2025-11-03 18:32:27 -08:00
dp83tg720.c
dp83640.c net: phy: dp83640: add HW timestamp configuration reporting 2025-11-26 16:56:34 -08:00
dp83640_reg.h
dp83822.c
dp83848.c
dp83867.c net: phy: dp83867: implement configurability for SGMII in-band auto-negotiation 2025-11-26 18:04:17 -08:00
dp83869.c net: phy: dp83869: fix STRAP_OPMODE bitmask 2025-10-29 17:59:09 -07:00
et1011c.c
fixed_phy.c net: phy: fixed_phy: remove not needed initialization of phy_device members 2025-11-20 18:18:54 -08:00
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88q2xxx.c net: phy: marvell-88q2xxx: Fix clamped value in mv88q2xxx_hwmon_write 2025-12-04 17:49:31 -08:00
marvell-88x2222.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell10g.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
mdio-open-alliance.h net: phy: phy-c45: add SQI and SQI+ support for OATC14 10Base-T1S PHYs 2025-12-01 15:08:24 -08:00
mdio-private.h net: mdio: common handling of phy device reset properties 2025-11-20 17:41:39 -08:00
mdio_bus.c net: mdio: eliminate kdoc warnings in mdio_device.c and mdio_bus.c 2025-11-25 18:43:56 -08:00
mdio_bus_provider.c net: phy: use new iterator mdiobus_for_each_phy in mdiobus_prevent_c45_scan 2025-10-29 19:00:34 -07:00
mdio_device.c net: mdio: eliminate kdoc warnings in mdio_device.c and mdio_bus.c 2025-11-25 18:43:56 -08:00
mdio_devres.c
meson-gxl.c
micrel.c phy: rename hwtstamp callback to hwtstamp_set 2025-11-26 16:56:33 -08:00
microchip.c net: phy: microchip: limit 100M workaround to link-down events on LAN88xx 2025-07-10 18:08:16 -07:00
microchip_rds_ptp.c phy: rename hwtstamp callback to hwtstamp_set 2025-11-26 16:56:33 -08:00
microchip_rds_ptp.h
microchip_t1.c
microchip_t1s.c net: phy: microchip_t1s: add SQI support for LAN867x Rev.D0 PHYs 2025-12-01 15:08:24 -08:00
mii_timestamper.c
motorcomm.c net: phy: motorcomm: Add support for PHY LEDs on YT8531 2025-10-28 18:56:16 -07:00
mxl-86110.c net: phy: mxl-86110: Add power management and soft reset support 2026-01-04 09:53:33 -08:00
mxl-gpy.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-11-27 12:19:08 -08:00
national.c
ncn26000.c
nxp-c45-tja11xx-macsec.c net: phy: nxp-c45-tja11xx: use bitmap_empty() where appropriate 2025-09-16 12:15:49 +02:00
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: add HW timestamp configuration reporting 2025-11-26 16:56:34 -08:00
nxp-c45-tja11xx.h
nxp-cbtx.c
nxp-tja11xx.c
open_alliance_helpers.c
open_alliance_helpers.h
phy-c45.c net: phy: phy-c45: add SQI and SQI+ support for OATC14 10Base-T1S PHYs 2025-12-01 15:08:24 -08:00
phy-caps.h net: ethtool: Add support for 1600Gbps speed 2025-11-20 18:21:29 -08:00
phy-core.c net: ethtool: Add support for 1600Gbps speed 2025-11-20 18:21:29 -08:00
phy.c phy: add hwtstamp_get callback to phy drivers 2025-11-26 16:56:33 -08:00
phy_caps.c net: ethtool: Add support for 1600Gbps speed 2025-11-20 18:21:29 -08:00
phy_device.c net: phy: make phy_device members pause and asym_pause bitfield bits 2025-11-04 18:14:35 -08:00
phy_led_triggers.c
phy_link_topology.c
phy_package.c
phylib-internal.h
phylib.h
phylink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-11-20 09:13:26 -08:00
qsemi.c
qt2025.rs net: phy: qt2025: Wait until PHY becomes ready 2025-11-06 14:47:19 -08:00
rockchip.c
sfp-bus.c net: sfp: remove old sfp_parse_* functions 2025-09-22 16:05:15 -07:00
sfp.c net: sfp: return the number of written bytes for smbus single byte access 2026-01-06 17:13:34 -08:00
sfp.h net: sfp: convert sfp quirks to modify struct sfp_module_support 2025-09-22 16:05:14 -07:00
smsc.c net: phy: smsc: add proper reset flags for LAN8710A 2025-07-30 18:14:11 -07:00
ste10Xp.c
stubs.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c