Re: [PATCH 0/2] Fix possible deadlocks for i8255 GPIO drivers

From: Linus Walleij
Date: Tue Apr 04 2023 - 10:02:51 EST


On Mon, Apr 3, 2023 at 7:53 PM William Breathitt Gray
<william.gray@xxxxxxxxxx> wrote:

> The 104-dio-48e and 104-idi-48 drivers leverage regmap-irq to handle
> IRQ. The default regmap locking utilizes spinlocks but this can result
> in deadlocks for IRQ chips when running -rt kernels [0]. Enable
> use_raw_spinlock for the regmap_config of these drivers to prevent such.
>
> [0] https://lore.kernel.org/all/1466065537-82027-1-git-send-email-mika.westerberg@xxxxxxxxxxxxxxx/

This looks reasonable.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij