summaryrefslogtreecommitdiff
path: root/drivers/parport
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@nxp.com>2017-09-04 10:45:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-20 09:27:46 +0300
commit80b25b4bb2e27e08380d1ba943863395bbb75086 (patch)
tree6c665babfe6028efcd0e9d92806ffe5643961ed9 /drivers/parport
parentecb26e815aaa5f8c6a6f060f945856b7b472132b (diff)
downloadlinux-80b25b4bb2e27e08380d1ba943863395bbb75086.tar.xz
gianfar: Fix Tx flow control deactivation
[ Upstream commit 5d621672bc1a1e5090c1ac5432a18c79e0e13e03 ] The wrong register is checked for the Tx flow control bit, it should have been maccfg1 not maccfg2. This went unnoticed for so long probably because the impact is hardly visible, not to mention the tangled code from adjust_link(). First, link flow control (i.e. handling of Rx/Tx link level pause frames) is disabled by default (needs to be enabled via 'ethtool -A'). Secondly, maccfg2 always returns 0 for tx_flow_oldval (except for a few old boards), which results in Tx flow control remaining always on once activated. Fixes: 45b679c9a3ccd9e34f28e6ec677b812a860eb8eb ("gianfar: Implement PAUSE frame generation support") Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
0 files changed, 0 insertions, 0 deletions