Re: [PATCH v2 04/11] thermal: k3_j72xx_bandgap: map fuse_base only for erratum workaround

Bryan Brattlof
2022-10-25T19:42:24Z

On October 25, 2022 thus sayeth Bryan Brattlof:
> Some of TI's J721E SoCs require a software trimming procedure for the
> temperature monitors to function properly. To determine if a particular
> J721E is not affected by this erratum, both bits in the WKUP_SPARE_FUSE0
> region must be set. Other SoCs, not affected by this erratum, will not
> need this region.
>
> Map the 'fuse_base' region only when the erratum fix is needed.
>
> Signed-off-by: Bryan Brattlof <bb@ti.com>
> ---
> drivers/thermal/k3_j72xx_bandgap.c | 37 ++++++++++++++++++------------
> 1 file changed, 22 insertions(+), 15 deletions(-)
>

...

>
> - if (workaround_needed)
> - devm_iounmap(dev, fuse_base);
> -

Ugh... This is wrong.

Of course I will catch it right after I send this out

Sorry for the noise everyone
~Bryan