]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mediatek: stop using bitfileds for DMA descriptors
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 9 Sep 2022 11:59:24 +0000 (19:59 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:09:15 +0000 (15:09 -0400)
commit7d928c3f2798fc2602e3c320b533fa721a92df38
tree2205c16eb2e0aa8b2e378beb831d8a1abee2fe81
parent625967254c3983730e998b5f302b70390bb9e770
net: mediatek: stop using bitfileds for DMA descriptors

This patch is a preparation for adding a new version of PDMA of which the
DMA descriptor fields has changed. Using bitfields will result in a complex
modification. Convert bitfields to u32 units can solve this problem easily.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h