]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: pcnet: Split common and non-DM functions
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 17 May 2020 15:28:31 +0000 (17:28 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:41 +0000 (19:34 +0200)
commitdea9b6014b2e8a62b615ebe6f8778e5c624076e4
treefd6fa0c9296ac60d5b8578bd585aecfd5a0dc402
parent1023a1e6a9b506c318ee9330d90d3acdf5593f89
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