]> git.baikalelectronics.ru Git - uboot.git/commit
net: dm9000: Correctly handle empty FIFO
authorMarek Vasut <marex@denx.de>
Mon, 25 Apr 2022 18:28:05 +0000 (20:28 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Aug 2022 14:50:20 +0000 (10:50 -0400)
commitc8fde953f620b0a798ccac89420c633a80c2ba1d
treef7a91213acb26a7aa65cf99141ec84f596e1f4f3
parent64ade8393894f617e7ba1d5547b1097e40fc5edc
net: dm9000: Correctly handle empty FIFO

Assign packet pointer only in case the MAC reports anything in the FIFO.
In case the MAC indicates empty FIFO, return 0 to pass that information
to the network stack.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dm9000x.c