Re: [PATCH] wilc1000: Remove misleading USE_SPI_DMA macro

From: Kalle Valo
Date: Tue Dec 14 2021 - 13:45:01 EST


David Mosberger-Tang <davidm@xxxxxxxxxx> wrote:

> The USE_SPI_DMA macro name suggests that it could be set to 1 to
> control whether or not SPI DMA should be used. However, that's not
> what it does. If set to 1, it'll set the SPI messages'
> "is_dma_mapped" flag to true, even though the tx/rx buffers aren't
> actually DMA mapped by the driver. In other words, setting this flag
> to 1 will break the driver.
>
> Best to clean up this confusion by removing the macro altogether.
> There is no need to explicitly initialize "is_dma_mapped" because the
> message is cleared to zero anyhow, so "is_dma_mapped" is set to false
> by default.
>
> Signed-off-by: David Mosberger-Tang <davidm@xxxxxxxxxx>
> Acked-by: Ajay Singh <ajay.kathat@xxxxxxxxxxxxx>

Patch applied to wireless-drivers-next.git, thanks.

dde02213fa64 wilc1000: Remove misleading USE_SPI_DMA macro

--
https://patchwork.kernel.org/project/linux-wireless/patch/20211207002453.3193737-1-davidm@xxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches