lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFopr_xPEkxZdT5JALTM16SCYiaj1A=_n-805HNPooBQGA@mail.gmail.com>
Date: Thu, 3 Jul 2025 14:19:27 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Benoît Monin <benoit.monin@...tlin.com>
Cc: Adrian Hunter <adrian.hunter@...el.com>, linux-mmc@...r.kernel.org, 
	linux-kernel@...r.kernel.org, 
	Vladimir Kondratiev <vladimir.kondratiev@...ileye.com>, 
	Tawfik Bayouk <tawfik.bayouk@...ileye.com>, Gregory CLEMENT <gregory.clement@...tlin.com>, 
	Théo Lebrun <theo.lebrun@...tlin.com>, 
	Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Subject: Re: [PATCH 1/2] mmc: sdhci-cadence: use of_property_present

On Thu, 26 Jun 2025 at 16:44, Benoît Monin <benoit.monin@...tlin.com> wrote:
>
> Instead of using of_property_read_bool to check the presence of the
> cdns,phy-* properties in the device tree, use of_property_present in
> function sdhci_cdns_phy_param_count.
>
> This silences the following warning messages since the cdns,phy-*
> properties are all u32, not boolean.
>
> OF: /soc/sdhci@...10000: Read of boolean property 'cdns,phy-input-delay-legacy' with a value.
> OF: /soc/sdhci@...10000: Read of boolean property 'cdns,phy-input-delay-mmc-highspeed' with a value.
> OF: /soc/sdhci@...10000: Read of boolean property 'cdns,phy-input-delay-mmc-ddr' with a value.
> OF: /soc/sdhci@...10000: Read of boolean property 'cdns,phy-dll-delay-sdclk' with a value.
> OF: /soc/sdhci@...10000: Read of boolean property 'cdns,phy-dll-delay-sdclk-hsmmc' with a value.
>
> Signed-off-by: Benoît Monin <benoit.monin@...tlin.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/sdhci-cadence.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c
> index a94b297fcf2a..27bd2eb29948 100644
> --- a/drivers/mmc/host/sdhci-cadence.c
> +++ b/drivers/mmc/host/sdhci-cadence.c
> @@ -144,7 +144,7 @@ static unsigned int sdhci_cdns_phy_param_count(struct device_node *np)
>         int i;
>
>         for (i = 0; i < ARRAY_SIZE(sdhci_cdns_phy_cfgs); i++)
> -               if (of_property_read_bool(np, sdhci_cdns_phy_cfgs[i].property))
> +               if (of_property_present(np, sdhci_cdns_phy_cfgs[i].property))
>                         count++;
>
>         return count;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ