]> git.baikalelectronics.ru Git - uboot.git/commit
net: pcnet: Split common and non-DM functions
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 17 May 2020 16:24:23 +0000 (18:24 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 29 Jun 2020 20:36:35 +0000 (22:36 +0200)
commite51fd595b45bb3e7c4bc675aa90e4b90c0b155d5
tree418a872a4549611d7ec4718b47bf3c264509d701
parent3277b42660f12ecaad1e691feb3bb3e2f15f5278
net: pcnet: Split common and non-DM functions

Pull the common parts of functions out so they can be reused by both
DM and non-DM code paths. The recv() function had to be reworked to
fit into this scheme and this means it now only receives one packet
at a time instead of spinning in an endless loop.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pcnet.c