diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-03-31 09:50:07 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-31 23:42:33 (GMT) |
commit | 1e1b812bbe1069fc8e2e372dca7d5f541c7a8ceb (patch) | |
tree | 70dd800eaa9af831acf96284c3bc7d13e562f581 /drivers/video/ep93xx-fb.c | |
parent | 14bc435ea54cb888409efb54fc6b76c13ef530e9 (diff) | |
download | linux-fsl-qoriq-1e1b812bbe1069fc8e2e372dca7d5f541c7a8ceb.tar.xz |
sh_eth: fix handling of no LINK signal
The code handling the absent LINK signal (or the absent PSR register -- which
reflects the state of this signal) is quite naive and has probably never really
worked. It's probably enough to say that this code is executed only on the LINK
change interrupt (sic!) but even if we actually have the signal and choose to
ignore it (it might be connected to PHY's link/activity LED output as on the
Renesas BOCK-W board), sh_eth_adjust_link() on which this code relies to update
'mdp->link' gets executed later than the LINK change interrupt where it is
checked, and so RX/TX never get enabled via ECMR register.
So, ignore the LINK changed interrupt iff LINK signal is absent (or just chosen
not to be used) or PSR register is absent, and enable/disable RX/TX directly in
sh_eth_adjust_link() in this case.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/video/ep93xx-fb.c')
0 files changed, 0 insertions, 0 deletions