[PATCH v3 8/9] spi: dw: Use dma_slave_caps bus width helpers
Andy Shevchenko
andriy.shevchenko at intel.com
Mon Aug 31 06:47:54 PDT 2026
On Mon, Aug 31, 2026 at 12:46:45PM +0100, Nuno Sá wrote:
> Store the common TX destination and RX source bus widths in a
> driver-owned DMA bus width bitmap and populate it through the
> dma_slave_caps helper.
>
> This avoids depending on the legacy src_addr_widths and dst_addr_widths
> masks returned by dma_get_slave_caps().
Reviewed-by: Andy Shevchenko <andriy.shevchenko at intel.com>
One nit-pick below.
...
> +++ b/drivers/spi/spi-dw.h
> #include <linux/scatterlist.h>
> #include <linux/spi/spi-mem.h>
> #include <linux/bitfield.h>
> +#include <linux/dma/engine/types.h>
Even if it's not sorted, try to squeeze the new one into ordered manner.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list