Re: [PATCH] spi: spi-geni-qcom: Speculative fix of "nobody cared" about interrupt

From: Mark Brown
Date: Tue Mar 17 2020 - 08:10:22 EST


On Mon, Mar 16, 2020 at 03:20:01PM -0700, Douglas Anderson wrote:

> + /*
> + * We don't expect to hit this, but if we do we should try our best
> + * to clear the interrupts and return so we don't just get called
> + * again.
> + */
> + if (mas->cur_mcmd == CMD_NONE)
> + goto exit;
> +

Does this mean that there was an actual concrete message of type
CMD_NONE or does it mean that there was no message waiting? If there
was no message then isn't the interrupt spurious?

Attachment: signature.asc
Description: PGP signature