[PATCH v4 2/4] spi: Split spi message into max_dma_len size chunks
Mark Brown
broonie at kernel.org
Fri Apr 12 09:08:26 UTC 2019
On Thu, Apr 11, 2019 at 06:42:33PM +0200, Noralf Trønnes wrote:
> +++ b/drivers/spi/spi.c
> @@ -1299,6 +1299,11 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
>
> trace_spi_message_start(ctlr->cur_msg);
>
> + ret = spi_split_transfers_maxsize(ctlr, ctlr->cur_msg, ctlr->max_dma_len,
> + GFP_KERNEL | GFP_DMA);
> + if (ret)
> + goto out;
> +
We should do any message maipulation in __spi_validate() with all the
other mainpulation, the message pump should just be pushing messages
out.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190412/a8ecc37c/attachment.sig>
More information about the dri-devel
mailing list