diff options
author | Antoine Tenart <antoine.tenart@bootlin.com> | 2018-05-04 17:21:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-08 20:14:27 -0400 |
commit | 2b999ba899059eed00a03d029894a62486e7e2bc (patch) | |
tree | a369534f52328b890e90f02b05d2aea6a337427e /fs/9p/cache.h | |
parent | 8d42eada64e4c564d22be61ef68585d4bbaabaa9 (diff) | |
download | linux-2b999ba899059eed00a03d029894a62486e7e2bc.tar.bz2 |
net: phy: sfp: handle cases where neither BR, min nor BR, max is given
When computing the bitrate using values read from an SFP module EEPROM,
we use the nominal BR plus BR,min and BR,max to determine the
boundaries. But in some cases BR,min and BR,max aren't provided, which
led the SFP code to end up having the nominal value for both the minimum
and maximum bitrate values. When using a passive cable, the nominal
value should be used as the maximum one, and there is no minimum one
so we should use 0.
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>
Diffstat (limited to 'fs/9p/cache.h')
0 files changed, 0 insertions, 0 deletions