public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wadim Egorov <w.egorov@phytec.de>
To: Daniel Schultz <d.schultz@phytec.de>, <trini@konsulko.com>,
	<u-boot@lists.denx.de>
Cc: <d-gole@ti.com>, <upstream@lists.phytec.de>
Subject: Re: [PATCH 2/2] board: phytec: common: k3: Expose product infos to Linux
Date: Mon, 11 Nov 2024 09:20:22 +0100	[thread overview]
Message-ID: <dc39488f-31bf-4c4a-9214-37bc2b164463@phytec.de> (raw)
In-Reply-To: <20241108181914.3358114-2-d.schultz@phytec.de>



Am 08.11.24 um 19:19 schrieb Daniel Schultz:
> Call 'phytec_ft_board_fixup' in the common K3 board code
> to expose the product name and part number to Linux.
> 
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
> ---
>   board/phytec/common/k3/board.c | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c
> index 3d7e090ccaa..14a10f34e53 100644
> --- a/board/phytec/common/k3/board.c
> +++ b/board/phytec/common/k3/board.c
> @@ -99,8 +99,22 @@ int board_late_init(void)
>   #if IS_ENABLED(CONFIG_OF_LIBFDT) && IS_ENABLED(CONFIG_OF_BOARD_SETUP)
>   int ft_board_setup(void *blob, struct bd_info *bd)
>   {
> +	struct phytec_eeprom_data data;
> +	int ret;
> +
>   	fdt_copy_fixed_partitions(blob);
>   
> +	ret = phytec_eeprom_data_setup(&data, 0, EEPROM_ADDR);
> +	if (ret || !data.valid)
> +		return 0;
> +
> +	ret = phytec_ft_board_fixup(&data, blob, bd);
> +	if (ret) {
> +		pr_err("%s: Failed to add PHYTEC information to fdt.\n",
> +		       __func__);
> +		return 0;

This return is not needed. Other than that, the patch looks good to me.

Reviewed-by: Wadim Egorov <w.egorov@phytec.de>

> +	}
> +
>   	return 0;
>   }
>   #endif


  reply	other threads:[~2024-11-11  8:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08 18:19 [PATCH 1/2] board: phytec: common: Add product information to FTD Daniel Schultz
2024-11-08 18:19 ` [PATCH 2/2] board: phytec: common: k3: Expose product infos to Linux Daniel Schultz
2024-11-11  8:20   ` Wadim Egorov [this message]
2024-11-11  8:35 ` [PATCH 1/2] board: phytec: common: Add product information to FTD Wadim Egorov
2025-01-15 10:36   ` Daniel Schultz

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=dc39488f-31bf-4c4a-9214-37bc2b164463@phytec.de \
    --to=w.egorov@phytec.de \
    --cc=d-gole@ti.com \
    --cc=d.schultz@phytec.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox