Re: [PATCH] dma-mapping: Don't store redundant offsets

From: Rob Herring
Date: Mon Nov 27 2023 - 16:41:18 EST



On Fri, 24 Nov 2023 18:10:03 +0000, Robin Murphy wrote:
> A bus_dma_region necessarily stores both CPU and DMA base addresses for
> a range, so there's no need to also store the difference between them.
>
> Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>
> ---
> drivers/acpi/scan.c | 1 -
> drivers/of/address.c | 1 -
> include/linux/dma-direct.h | 19 ++++++++++++-------
> kernel/dma/direct.c | 1 -
> 4 files changed, 12 insertions(+), 10 deletions(-)
>

Acked-by: Rob Herring <robh@xxxxxxxxxx>