[PATCH 07/31] net: mediatek: stop using bitfileds for DMA descriptors

Simon Glass sjg at chromium.org
Thu Aug 4 15:56:57 CEST 2022


On Wed, 3 Aug 2022 at 21:36, Weijie Gao <weijie.gao at mediatek.com> wrote:
>
> 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.
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
>  drivers/net/mtk_eth.c | 144 ++++++++++++++----------------------------
>  drivers/net/mtk_eth.h |  32 ++++++++++
>  2 files changed, 80 insertions(+), 96 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list