]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: lantiq_gswip: Only allow phy-mode = "internal" on the CPU port
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 11 Jun 2024 13:54:24 +0000 (15:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Jun 2024 00:07:10 +0000 (17:07 -0700)
commitb98f122ebdac28b0c932f3f4474eb0927c39297b
tree1148033f5ce372d0b735eff9541f29cc6070c29b
parentc7f75954212b5e64f6b1f2375215b02fd79758ce
net: dsa: lantiq_gswip: Only allow phy-mode = "internal" on the CPU port

Add the CPU port to gswip_xrx200_phylink_get_caps() and
gswip_xrx300_phylink_get_caps(). It connects through a SoC-internal bus,
so the only allowed phy-mode is PHY_INTERFACE_MODE_INTERNAL.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Link: https://lore.kernel.org/r/20240611135434.3180973-3-ms@dev.tdt.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq_gswip.c