summaryrefslogtreecommitdiff
path: root/drivers/mux
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2020-01-23 01:07:26 +0300
committerDavid S. Miller <davem@davemloft.net>2020-01-23 23:24:37 +0300
commit27e0c31c5f27c1d1a1d9d135c123069f60dcf97b (patch)
tree852e03b3637c50a5dfc087bee6ae2f4ff1ec9053 /drivers/mux
parent3f4b7e6a2be982fd8820a2b54d46dd9c351db899 (diff)
downloadlinux-27e0c31c5f27c1d1a1d9d135c123069f60dcf97b.tar.xz
net/sonic: Fix command register usage
There are several issues relating to command register usage during chip initialization. Firstly, the SONIC sometimes comes out of software reset with the Start Timer bit set. This gets logged as, macsonic macsonic eth0: sonic_init: status=24, i=101 Avoid this by giving the Stop Timer command earlier than later. Secondly, the loop that waits for the Read RRA command to complete has the break condition inverted. That's why the for loop iterates until its termination condition. Call the helper for this instead. Finally, give the Receiver Enable command after clearing interrupts, not before, to avoid the possibility of losing an interrupt. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mux')
0 files changed, 0 insertions, 0 deletions