public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: Raymond Mao <raymond.mao@linaro.org>, u-boot@lists.denx.de
Cc: "Tom Rini" <trini@konsulko.com>,
	"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Simon Glass" <sjg@chromium.org>,
	"Alper Nebi Yasak" <alpernebiyasak@gmail.com>,
	"Marek Behún" <kabel@kernel.org>, "Stefan Roese" <sr@denx.de>,
	"Bin Meng" <bmeng@tinylab.org>,
	"Kever Yang" <kever.yang@rock-chips.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Wan Yee Lau" <wan.yee.lau@intel.com>,
	"Caleb Connolly" <caleb.connolly@linaro.org>,
	"Alexander Gendin" <agendin@matrox.com>,
	"Masahisa Kojima" <kojima.masahisa@socionext.com>,
	"Max Krummenacher" <max.krummenacher@toradex.com>,
	"Francesco Dolcini" <francesco.dolcini@toradex.com>,
	"Sean Anderson" <seanga2@gmail.com>,
	"Oleksandr Suvorov" <oleksandr.suvorov@foundries.io>,
	"Peter Robinson" <pbrobinson@gmail.com>
Subject: Re: [PATCH 04/10] smbios: ignore the non-existence of platform sysinfo detect
Date: Mon, 26 Aug 2024 11:39:25 +0200	[thread overview]
Message-ID: <2227136e-e9ab-48a4-94ff-d489416035d3@amd.com> (raw)
In-Reply-To: <20240816154658.1866186-5-raymond.mao@linaro.org>



On 8/16/24 17:46, Raymond Mao wrote:
> During writing SMBIOS table, implementation of sysinfo detect
> function for a specific platform is not mandatory.
> Thus we should not return an error when platform sysinfo
> detect function does not exist.

first of all you should avoid we and use imperative mood.

Second what you are writing here is not matching what your change does.

Simon did a patch not to make it mandatory.

M

> 
> Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> ---
>   lib/smbios.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/lib/smbios.c b/lib/smbios.c
> index 8e481365165..2f1759d419e 100644
> --- a/lib/smbios.c
> +++ b/lib/smbios.c
> @@ -825,10 +825,9 @@ ulong write_smbios_table(ulong addr)
>   	if (CONFIG_IS_ENABLED(SYSINFO)) {
>   		uclass_first_device(UCLASS_SYSINFO, &ctx.dev);
>   		if (ctx.dev) {
> -			int ret;
> +			int ret = sysinfo_detect(ctx.dev);
>   
>   			parent_node = dev_read_subnode(ctx.dev, "smbios");
> -			ret = sysinfo_detect(ctx.dev);
>   
>   			/*
>   			 * ignore the error since many boards don't implement

  reply	other threads:[~2024-08-26  9:39 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16 15:46 [PATCH 00/10] SMBIOS improvements Raymond Mao
2024-08-16 15:46 ` [PATCH 01/10] sysinfo: Add sysinfo API for accessing data area Raymond Mao
2024-08-16 15:46 ` [PATCH 02/10] sysinfo: Add sysinfo driver and data structure for SMBIOS Raymond Mao
2024-08-26  9:01   ` Michal Simek
2024-08-26  9:52   ` Michal Simek
2024-08-29 14:05   ` Simon Glass
2024-08-16 15:46 ` [PATCH 03/10] smbios: Refactor SMBIOS library Raymond Mao
2024-08-26  9:34   ` Michal Simek
2024-09-09 15:30   ` Heinrich Schuchardt
2024-08-16 15:46 ` [PATCH 04/10] smbios: ignore the non-existence of platform sysinfo detect Raymond Mao
2024-08-26  9:39   ` Michal Simek [this message]
2024-08-16 15:46 ` [PATCH 05/10] armv8: Add arch-specific sysinfo driver Raymond Mao
2024-08-19 11:09   ` Caleb Connolly
2024-08-26 15:32   ` Michal Simek
2024-08-16 15:46 ` [PATCH 06/10] sysinfo: Add sysinfo driver for SMBIOS type 7 Raymond Mao
2024-08-16 15:46 ` [PATCH 07/10] smbios: Add support to " Raymond Mao
2024-08-16 15:46 ` [PATCH 08/10] armv8: Add sysinfo driver for cache information Raymond Mao
2024-08-16 15:46 ` [PATCH 09/10] configs: Enable sysinfo for QEMU Arm64 Raymond Mao
2024-08-16 15:46 ` [PATCH 10/10] tests: update smbios pytest Raymond Mao
2024-08-19 22:19   ` Tom Rini
2024-10-21 15:23     ` Raymond Mao
2024-10-21 17:23       ` Tom Rini
2024-08-17 15:58 ` [PATCH 00/10] SMBIOS improvements Simon Glass
2024-08-19 23:03   ` Caleb Connolly
2024-08-26 17:58     ` Simon Glass
2024-08-26 18:23       ` Tom Rini
2024-08-26 18:50         ` Heinrich Schuchardt
2024-08-26 19:12         ` Simon Glass
2024-08-26 19:59           ` Tom Rini
2024-09-15 17:57             ` Heinrich Schuchardt
2024-09-15 18:28               ` Tom Rini
2024-09-19 14:13                 ` Simon Glass
2024-09-19 17:48                   ` Tom Rini
2024-10-07 14:47                     ` Raymond Mao
2024-09-03 16:06   ` Raymond Mao
2024-09-10 18:44     ` Simon Glass
2024-09-10 19:20       ` Raymond Mao
2024-09-10 20:15         ` Simon Glass
2024-08-19 11:56 ` Caleb Connolly
2024-09-09 13:37   ` Raymond Mao

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=2227136e-e9ab-48a4-94ff-d489416035d3@amd.com \
    --to=michal.simek@amd.com \
    --cc=agendin@matrox.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=bmeng@tinylab.org \
    --cc=caleb.connolly@linaro.org \
    --cc=francesco.dolcini@toradex.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jonas@kwiboo.se \
    --cc=kabel@kernel.org \
    --cc=kever.yang@rock-chips.com \
    --cc=kojima.masahisa@socionext.com \
    --cc=max.krummenacher@toradex.com \
    --cc=oleksandr.suvorov@foundries.io \
    --cc=pbrobinson@gmail.com \
    --cc=raymond.mao@linaro.org \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sr@denx.de \
    --cc=trini@konsulko.com \
    --cc=tuomas.tynkkynen@iki.fi \
    --cc=u-boot@lists.denx.de \
    --cc=wan.yee.lau@intel.com \
    --cc=xypron.glpk@gmx.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