summaryrefslogtreecommitdiffstats
path: root/kernel/kcov.c
diff options
context:
space:
mode:
authorTobias Waldekranz <tobias@waldekranz.com>2021-04-26 18:17:34 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-27 23:06:19 +0200
commit6066234aa33850e9e35e7be82d92b9e9091e774b (patch)
treeb2a84d9a70dad3a992bd62f6e23cff7bfc033cf4 /kernel/kcov.c
parentnet: phy: marvell-88x2222: enable autoneg by default (diff)
downloadlinux-6066234aa33850e9e35e7be82d92b9e9091e774b.tar.xz
linux-6066234aa33850e9e35e7be82d92b9e9091e774b.zip
net: dsa: mv88e6xxx: Fix 6095/6097/6185 ports in non-SERDES CMODE
The .serdes_get_lane op used the magic value 0xff to indicate a valid SERDES lane and 0 signaled that a non-SERDES mode was set on the port. Unfortunately, "0" is also a valid lane ID, so even when these ports where configured to e.g. RGMII the driver would set them up as SERDES ports. - Replace 0xff with 0 to indicate a valid lane ID. The number is on the one hand just as arbitrary, but it is at least the first valid one and therefore less of a surprise. - Follow the other .serdes_get_lane implementations and return -ENODEV in the case where no SERDES is assigned to the port. Fixes: f5be107c3338 ("net: dsa: mv88e6xxx: Support serdes ports on MV88E6097/6095/6185") Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/kcov.c')
0 files changed, 0 insertions, 0 deletions