]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: emaclite: Fix logic around available TX buffers
authorMichal Simek <michal.simek@xilinx.com>
Thu, 10 Dec 2015 14:42:01 +0000 (15:42 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:52 +0000 (15:55 +0100)
commit26c7945a24b8bd5565e9b1481dac10ff14eca177
treeb5fb25a587279f78289672f677e1946159ed0ca3
parent5a4baa33e4d0beb9708719160bfc3f91a8f9f3bf
net: emaclite: Fix logic around available TX buffers

Simplify logic how to find out if there is free TX buffer.
Both buffers are checked all the time that's why logic around order
can be removed.
Also add check when only one buffer is available.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/xilinx_emaclite.c