All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francesco Dolcini <francesco@dolcini.it>
To: Stefan Eichenberger <eichest@gmail.com>
Cc: trini@konsulko.com, ilias.apalodimas@linaro.org,
	sbabic@nabladev.com, festevam@gmail.com, uboot-imx@nxp.com,
	stefan.eichenberger@toradex.com, francesco.dolcini@toradex.com,
	u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v1 1/2] imx: mach: imx8: fdt: return libfdt errors from helpers
Date: Tue, 20 Oct 2026 07:31:06 +0200	[thread overview]
Message-ID: <20261020053106.GA6592@francesco-nb> (raw)
In-Reply-To: <20261019125930.111608-2-eichest@gmail.com>

On Mon, Oct 19, 2026 at 02:58:52PM +0200, Stefan Eichenberger wrote:
> From: Stefan Eichenberger <stefan.eichenberger@toradex.com>
> 
> delete_node() and change_property() replaced the libfdt error codes with
> -ENXIO and -EINVAL, but the callers pass the result to fdt_strerror(),
> which expects a libfdt error code. In addition,
> update_fdt_gpu_industrial_frequencies() compared the result against the
> positive ENXIO, so a missing node was reported as an error instead of
> being ignored.
> 
> On an industrial i.MX 8 booted with a device tree that lacks the GPU1
> nodes (e.g. mainline Linux), a misleading error is printed on every boot
> because -ENXIO is interpreted by fdt_strerror() as a libfdt error code,
> e.g.:
> 
>     Failed to set assigned-clock-rates for GPU1: FDT_ERR_BADPHANDLE
> 
> Return the libfdt error codes unchanged and ignore -FDT_ERR_NOTFOUND,
> which fdt_path_offset() returns if the node does not exist.
> 
> Fixes: e9cf7f515a19 ("imx: mach: imx8: fdt: set correct frequencies for the industrial SoC")
> Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>

Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>


  reply	other threads:[~2026-10-20  5:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 12:58 [PATCH v1 0/2] imx: mach: imx8: fdt: fix industrial GPU frequencies Stefan Eichenberger
2026-10-19 12:58 ` [PATCH v1 1/2] imx: mach: imx8: fdt: return libfdt errors from helpers Stefan Eichenberger
2026-10-20  5:31   ` Francesco Dolcini [this message]
2026-10-19 12:58 ` [PATCH v1 2/2] imx: mach: imx8: fdt: support newer GPU0 bus node name Stefan Eichenberger
2026-10-20  5:40   ` Francesco Dolcini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020053106.GA6592@francesco-nb \
    --to=francesco@dolcini.it \
    --cc=eichest@gmail.com \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=sbabic@nabladev.com \
    --cc=stefan.eichenberger@toradex.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.