summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-11-07 18:52:07 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2019-11-25 12:05:53 +0000
commit5c0e904e27719c0e5306d2231e75a84458515c86 (patch)
tree1b8f6da6530df76c62aa0dcc97f611304ff72cc0 /scripts
parent53b4a58370ab937fdddad2603c1d14fc4e0aa2a5 (diff)
net: sfp: allow modules with slow diagnostics to probe
When a module is inserted, we attempt to read read the ID from address 0x50. Once we are able to read the ID, we immediately attempt to initialise the hwmon support by reading from address 0x51. If this fails, then we fall into error state, and assume that the module is not usable. Modules such as the ALCATELLUCENT 3FE46541AA use a real EEPROM for I2C address 0x50, which responds immediately. However, address 0x51 is an emulated, which only becomes available once the on-board firmware has booted. This prompts us to fall into the error state. Since the module may be usable without diagnostics, arrange for the hwmon probe independent of the rest of the SFP itself, retrying every 5s for up to about 60s for the monitoring to become available, and print an error message if it doesn't become available. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions