Re: [PATCH v2] reset: mchp: sparx5: Fix for lan966x

From: Horatiu Vultur
Date: Wed Feb 26 2025 - 09:34:57 EST


The 02/26/2025 11:27, Philipp Zabel wrote:
>
> On Di, 2025-02-25 at 11:53 +0100, Horatiu Vultur wrote:
> > With the blamed commit it seems that lan966x doesn't seem to boot
> > anymore when the internal CPU is used.
> > The reason seems to be the usage of the devm_of_iomap, if we replace
> > this with of_iomap, this seems to fix the issue as we use the same
> > region also for other devices.
>
> So the issue is the devm_request_mem_region() called by
> devm_ioremap_resource()?

That is correct.

>
> Wouldn't it be easier to switch to devm_ioremap() instead?

That would be easier and the change set will be also smaller.

>
> regards
> Philipp

--
/Horatiu