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)
commitf5e7df58e0b96f97e1d8ef49415401a51e9f18b8
tree418a872a4549611d7ec4718b47bf3c264509d701
parent6d76c9f1e6df5338aeaa8699e16ea3bb755f858d
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