Re: [PATCH v1 2/2] spi: Check if transfer is mapped before calling DMA sync APIs

From: Mark Brown
Date: Thu May 23 2024 - 08:01:58 EST


On Wed, May 22, 2024 at 02:41:48PM -0400, Nícolas F. R. A. Prado wrote:

> I tested this series and I still get the oops (attached at the end for
> reference). When I tried this change originally, I added it on top of the
> patches you had supplied. And as it turns out one of them was necessary.
> Specifically, if I add
>
> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
> index f94420858c22..9bc9fd10d538 100644
> --- a/drivers/spi/spi.c
> +++ b/drivers/spi/spi.c
> @@ -1220,6 +1220,11 @@ void spi_unmap_buf(struct spi_controller *ctlr, struct device *dev,
> spi_unmap_buf_attrs(ctlr, dev, sgt, dir, 0);

The other two patches are already queued, could you send this one
incrementally please Andy?

Attachment: signature.asc
Description: PGP signature