diff options
author | 2023-04-06 16:08:33 +0300 | |
---|---|---|
committer | 2023-04-09 16:01:28 +0100 | |
commit | bef227c1537cb8005311c0842bc5449e8c7a5973 (patch) | |
tree | ab9b924053b727145b72e3d46401acee71c16496 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net: sfp: initialize sfp->i2c_block_size at sfp allocation (diff) | |
download | wireguard-linux-bef227c1537cb8005311c0842bc5449e8c7a5973.tar.xz wireguard-linux-bef227c1537cb8005311c0842bc5449e8c7a5973.zip |
net: sfp: avoid EEPROM read of absent SFP module
If SFP module is not present, it is sensible to fail sfp_module_eeprom()
and sfp_module_eeprom_by_page() early to avoid excessive I2C transfers
which are garanteed to fail.
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions