]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
xilinx_ethlite: fix eth_can_rx() for ping-pong
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Sat, 26 Jan 2013 20:36:22 +0000 (12:36 -0800)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sat, 26 Jan 2013 23:48:39 +0000 (00:48 +0100)
commit808fb9f277abda16601e9db938d29aeaf2548585
tree09017038787b883c4ec25e5e9b67cea67096530b
parent13144781d4e9e6100b398213f9000576a3dc88f9
xilinx_ethlite: fix eth_can_rx() for ping-pong

The eth_can_rx() function only checks the first buffers status ("ping"). The
controller should be able to receive into "pong" when ping-pong is enabled.
Checks the active buffer (either "ping" or "pong") when determining can_rx()
rather than just testing "ping".

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/xilinx_ethlite.c