linux/drivers/net/dsa/mv88e6xxx
Chris Packham 0fd5d79efa net: dsa: mv88e6xxx: Handle error in serdes_get_regs
If the underlying read operation failed we would end up writing stale
data to the supplied buffer. This would end up with the last
successfully read value repeating. Fix this by only writing the data
when we know the read was good. This will mean that failed values will
return 0xffff.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-25 17:58:06 -08:00
..
chip.c net: dsa: mv88e6xxx: Add serdes interrupt support for MV88E6097 2020-11-25 17:58:06 -08:00
chip.h net: dsa: mv88e6xxx: Don't force link when using in-band-status 2020-11-25 17:58:06 -08:00
devlink.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-12 16:54:48 -08:00
devlink.h net: dsa: mv88e6xxx: Implement devlink info get callback 2020-09-18 18:18:30 -07:00
global1_atu.c net: dsa: mv88e6xxx: Unique ATU and VTU IRQ names 2020-01-06 18:30:15 -08:00
global1_vtu.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
global1.c net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset 2020-11-18 11:24:44 -08:00
global1.h Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
global2_avb.c
global2_scratch.c net: dsa: mv88e6xxx: scratch: Fixup kerneldoc 2020-07-05 15:43:01 -07:00
global2.c net: dsa: mv88e6xxx: Remove set but unused variable 2020-07-05 15:43:01 -07:00
global2.h
hwtstamp.c net: dsa: mv88e6xxx: Use generic helper function 2020-08-19 16:07:49 -07:00
hwtstamp.h
Kconfig net: Make PTP-specific drivers depend on PTP_1588_CLOCK 2020-05-01 15:27:51 -07:00
Makefile net: dsa: mv88e6xxx: Move devlink code into its own file 2020-09-18 18:17:45 -07:00
phy.c
phy.h
port_hidden.c
port.c net: dsa: mv88e6xxx: Don't force link when using in-band-status 2020-11-25 17:58:06 -08:00
port.h net: dsa: mv88e6xxx: Don't force link when using in-band-status 2020-11-25 17:58:06 -08:00
ptp.c mv88e6xxx: Reject requests to enable time stamping on both edges. 2019-11-15 12:48:32 -08:00
ptp.h
serdes.c net: dsa: mv88e6xxx: Handle error in serdes_get_regs 2020-11-25 17:58:06 -08:00
serdes.h net: dsa: mv88e6xxx: Add serdes interrupt support for MV88E6097 2020-11-25 17:58:06 -08:00
smi.c
smi.h