Re: [PATCH] spi: core: Abort active target transfer on controller suspend

From: Mark Brown

Date: Thu Jun 25 2026 - 11:10:31 EST


On Thu, Jun 25, 2026 at 08:29:05PM +0530, Praveen Talari wrote:
> On 25-06-2026 18:57, Mark Brown wrote:

> > We need to check for an active message here, drivers are going to
> > assume there's an in progress operation to cancel - for example the
> > pxa2xx driver unconditionally sets cur_msg->status during abort which is
> > going to go badly without a cur_msg.

> Yes, i got it. Our spi driver had that check in target_abort.

> is it fine?

> if (ctrl->cur_msg && spi_controller_is_target(ctlr) && ctlr->target_abort)

I think so.

Attachment: signature.asc
Description: PGP signature