]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: soft status and control support
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 20 Nov 2019 12:29:59 +0000 (12:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 06:29:40 +0000 (22:29 -0800)
commit7870dfc14c8f39295c9c260250709341027acfb9
tree575df7d88c723bdccb716b855db226673f4d6e9f
parente29764538c78a52b32fa55784ed47165f70d6589
net: sfp: soft status and control support

Add support for the soft status and control register, which allows
TX_FAULT and RX_LOS to be monitored and TX_DISABLE to be set.  We
make use of this when the board does not support GPIOs for these
signals.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c
include/linux/sfp.h