Re: [PATCH 3/5] gpio: 104-idi-48: fix max_register blocking the IRQ register
From: William Breathitt Gray
Date: Sat Nov 07 2026 - 15:21:04 EST
On Sat, Nov 07, 2026 at 04:12:55PM +0800, shao.mingyin@xxxxxxxxxx wrote:
> From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
>
> The regmap config declares max_register = 0x6, but the device's IRQ
> status/enable register lives at offset 0x7 (IDI48_IRQ_STATUS /
> IDI48_IRQ_ENABLE, also listed in the readable/precious ranges and used
> as status_base/unmask_base by the regmap-irq chip). regmap_readable()
> and regmap_writeable() both return false for any register above
> max_register, so regmap_read() of the status register fails with -EIO
> inside regmap_irq_thread() and no GPIO interrupt is ever delivered.
>
> Raise max_register to 0x7 so the IRQ register is accessible.
>
> Fixes: e28432a77365 ("gpio: 104-idi-48: Migrate to the regmap-irq API")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
Acked-by: William Breathitt Gray <wbg@xxxxxxxxxx>