net: axienet: Preparatory changes for dmaengine support
authorSarath Babu Naidu Gaddam <sarath.babu.naidu.gaddam@amd.com>
Wed, 15 Nov 2023 18:56:52 +0000 (00:26 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Nov 2023 01:52:22 +0000 (17:52 -0800)
commit6b1b40f704fc39db70098a1908ab2309b29831b6
tree0038d34ec8cbd2a68f1793f7fd7c286b00bdf045
parent5e63c5ef7a99d4cc13ddb4964bdeaff45c0364a0
net: axienet: Preparatory changes for dmaengine support

The axiethernet driver has inbuilt dma programming. In order to add
dmaengine support and make it's integration seamless the current axidma
inbuilt programming code is put under use_dmaengine check.

It also performs minor code reordering to minimize conditional
use_dmaengine checks and there is no functional change. It uses
"dmas" property to identify whether it should use a dmaengine
framework or inbuilt axidma programming.

Signed-off-by: Sarath Babu Naidu Gaddam <sarath.babu.naidu.gaddam@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/1700074613-1977070-3-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c