]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: allow attaching phy for SFP modules on 802.3z mode
authorMarek Behún <kabel@kernel.org>
Fri, 30 Sep 2022 14:21:06 +0000 (16:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2022 10:08:33 +0000 (11:08 +0100)
commitfb880221d0e8a50cfa7a96ec20392fffe8ab3344
tree4d33ec4bdd80d76ad6efd1408d015dc76017ec5f
parent628c3f2fb794656ff791e15ce47a51fda4d29a10
net: phylink: allow attaching phy for SFP modules on 802.3z mode

Some SFPs may contain an internal PHY which may in some cases want to
connect with the host interface in 1000base-x/2500base-x mode.
Do not fail if such PHY is being attached in one of these PHY interface
modes.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Pali Rohár <pali@kernel.org>
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c