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] [thread-next>] [day] [month] [year] [list]
Message-ID: <YMm+VXRrRKIHGgmr@dell>
Date:   Wed, 16 Jun 2021 10:03:17 +0100
From:   Lee Jones <lee.jones@...aro.org>
To:     Yunus Bas <y.bas@...tec.de>
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: mfd-core: Change "Failed to locate of_node" warning
 to debug

On Wed, 16 Jun 2021, Yunus Bas wrote:

> The MFD-core iterates through all subdevices of the corresponding
> MFD-device and checks, if the devicetree subnode has a fitting compatible.
> When nothing is found, a warning is thrown. This can be the case, when it
> is the intention to not use the MFD-device to it's full content.
> Therefore, change the warning to a debug print instead, to also avoid
> irritations.
> 
> Signed-off-by: Yunus Bas <y.bas@...tec.de>
> ---
>  drivers/mfd/mfd-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
> index 6f02b8022c6d..e34c97088943 100644
> --- a/drivers/mfd/mfd-core.c
> +++ b/drivers/mfd/mfd-core.c
> @@ -213,7 +213,7 @@ static int mfd_add_device(struct device *parent, int id,
>  		}
>  
>  		if (!pdev->dev.of_node)
> -			pr_warn("%s: Failed to locate of_node [id: %d]\n",
> +			pr_debug("%s: Failed to locate of_node [id: %d]\n",
>  				cell->name, platform_id);
>  	}

Can you provide an example of a device tree where this is a problem?

Probably worth popping that in the commit message too.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ