]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
xilinx_emacps: Read statistics registers only once
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Mon, 8 Apr 2013 20:05:38 +0000 (22:05 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 15 Apr 2013 09:50:59 +0000 (11:50 +0200)
commit7727546f424718810f37bff32a1c506b64ce944b
tree6acab0cdf2a7e4a7f0c89958a09dcf703bce3f7b
parent99be3b1e4d154f59a8291ad53e6f46173913aad4
xilinx_emacps: Read statistics registers only once

Statistics registers are clear-on-read, so xemacps_update_stats() must
take care to read each of them only once -- extra reads will usually
return 0, leading to inconsistencies.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Tested-by: Anirudha Sarangi <anirudh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_emacps.c