]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: sfp: warn the user when no tx_disable pin is available
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 22 May 2018 10:17:59 +0000 (12:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 18:34:27 +0000 (14:34 -0400)
commit3ff9c3a37f49cb92db752bfe2a78e1ccc629167d
tree45131e0a7be8cd5b9fefd8b9c42e77eb4574b0e8
parent134caaccc48f5cd937cb032184cf70f4f5bd4b72
net: phy: sfp: warn the user when no tx_disable pin is available

In case no Tx disable pin is available the SFP modules will always be
emitting. This could be an issue when using modules using laser as their
light source as we would have no way to disable it when the fiber is
removed. This patch adds a warning when registering an SFP cage which do
not have its tx_disable pin wired or available.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c