mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
committed by
David S. Miller
parent
9ce33351bd
commit
f3c9a666b2
@@ -428,6 +428,10 @@ enum {
|
||||
SFP_TEC_CUR = 0x6c,
|
||||
|
||||
SFP_STATUS = 0x6e,
|
||||
SFP_STATUS_TX_DISABLE = BIT(7),
|
||||
SFP_STATUS_TX_DISABLE_FORCE = BIT(6),
|
||||
SFP_STATUS_TX_FAULT = BIT(2),
|
||||
SFP_STATUS_RX_LOS = BIT(1),
|
||||
SFP_ALARM0 = 0x70,
|
||||
SFP_ALARM0_TEMP_HIGH = BIT(7),
|
||||
SFP_ALARM0_TEMP_LOW = BIT(6),
|
||||
|
||||
Reference in New Issue
Block a user