Re: [PATCH 0/2] mfd: syscon: introduce no-auto-mmio DT property

From: Rob Herring

Date: Thu Oct 30 2025 - 14:21:45 EST


On Thu, Oct 30, 2025 at 04:09:52PM +0300, Dan Carpenter wrote:
> Yeah. Let me send this tommorrow if no one objects. Pretty simple
> solution in retrospect.
>
> [PATCH] mfd: syscon: Return -EPROBE_DEFER in device_node_get_regmap()
>
> These days we can register syscons with of_syscon_register_regmap() so
> if we can't find the syscon that probably means it hasn't been registered
> yet. Return -EPROBE_DEFER so the driver will try probing again.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
> drivers/mfd/syscon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>

> diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
> index ae71a2710bed..e5d5def594f6 100644
> --- a/drivers/mfd/syscon.c
> +++ b/drivers/mfd/syscon.c
> @@ -183,7 +183,7 @@ static struct regmap *device_node_get_regmap(struct device_node *np,
> if (create_regmap)
> syscon = of_syscon_register(np, check_res);
> else
> - syscon = ERR_PTR(-EINVAL);
> + syscon = ERR_PTR(-EPROBE_DEFER);
> }
> mutex_unlock(&syscon_list_lock);
>
> --
> 2.51.0
>