diff options
author | Ganesh Goudar | 2018-07-13 14:26:55 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-16 22:43:10 +0200 |
commit | bc1b50309ce19bb2ccb1340fa83ab56ca6da8f96 (patch) | |
tree | f490a08e7116d14a0cf1a5697596973aadf4ea21 /Documentation/mmc/mmc-async-req.txt | |
parent | net: convert gro_count to bitmask (diff) | |
download | kernel-qcow2-linux-bc1b50309ce19bb2ccb1340fa83ab56ca6da8f96.tar.gz kernel-qcow2-linux-bc1b50309ce19bb2ccb1340fa83ab56ca6da8f96.tar.xz kernel-qcow2-linux-bc1b50309ce19bb2ccb1340fa83ab56ca6da8f96.zip |
cxgb4: do not return DUPLEX_UNKNOWN when link is down
We were returning DUPLEX_UNKNOWN in get_link_ksettings() when
the link was down. Unfortunately, this causes a problem when
"ethtool -s autoneg on" is issued for a link which is down because
the ethtool code first reads the settings and then reapplies them
with only the changes provided on the command line. Which results
in us diving into set_link_ksettings() with DUPLEX_UNKNOWN which is
not DUPLEX_FULL, so set_link_ksettings() throws an -EINVAL error.
do not return DUPLEX_UNKNOWN to fix the issue.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/mmc/mmc-async-req.txt')
0 files changed, 0 insertions, 0 deletions