]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
xilinx_emacps: Don't check TXSR_TXCOMPL in xemacps_tx_poll()
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Sat, 11 May 2013 09:10:41 +0000 (11:10 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 5 Jun 2013 08:48:44 +0000 (10:48 +0200)
commit30cbd71925cd2b805a33db1333a541520f0727d6
treeed2ce68d42edccac905f1481a477d191f29be7a6
parent167b3c7f4d4e3f38225148fef8866a2b5faf8678
xilinx_emacps: Don't check TXSR_TXCOMPL in xemacps_tx_poll()

It doesn't really make sense to stop in xemacps_tx_poll() when
TXSR_TXCOMPL is not set. The logic works the other way round: When a
buffer becomes ready after reading TXSR, there is no reason why we
shouldn't process it. This is similar to xemacps_rx_poll() where
RXSR_FRAMERX isn't checked either.

We do stop when no buffers are available, though. In this case, skip
netif_start_queue() because nothing has changed.

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