Commit 4db3e956 authored by Alexis Lothoré's avatar Alexis Lothoré Committed by Greg Kroah-Hartman
Browse files

net: dsa: mv88e6xxx: add field to specify internal phys layout



[ Upstream commit 3ba89b28 ]

mv88e6xxx currently assumes that switch equipped with internal phys have
those phys mapped contiguously starting from port 0 (see
mv88e6xxx_phy_is_internal). However, some switches have internal PHYs but
NOT starting from port 0. For example 88e6393X, 88E6193X and 88E6191X have
integrated PHYs available on ports 1 to 8
To properly support this offset, add a new field to allow specifying an
internal PHYs layout. If field is not set, default layout is assumed (start
at port 0)

Signed-off-by: default avatarAlexis Lothoré <alexis.lothore@bootlin.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 52fdc41c ("net: dsa: mv88e6xxx: fix internal PHYs for 6320 family")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7cdba14d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment