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:
 <PUZPR06MB5887436E03C17498E80E43C7EF3BA@PUZPR06MB5887.apcprd06.prod.outlook.com>
Date: Thu, 28 Aug 2025 08:32:35 +0000
From: Gary Yang <gary.yang@...tech.com>
To: Krzysztof Kozlowski <krzk@...nel.org>, "linus.walleij@...aro.org"
	<linus.walleij@...aro.org>, "robh@...nel.org" <robh@...nel.org>,
	"krzk+dt@...nel.org" <krzk+dt@...nel.org>, "conor+dt@...nel.org"
	<conor+dt@...nel.org>
CC: "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	cix-kernel-upstream <cix-kernel-upstream@...tech.com>
Subject:
 回复: 回复: [PATCH 1/3] pinctrl: cix: Add pin-controller support for sky1

Hi Krzysztof,

> 
> On 28/08/2025 08:44, Gary Yang wrote:
> >>
> >>> +     if (ret) {
> >>> +             dev_err(&pdev->dev, "fail to probe dt properties\n");
> >>
> >> You are printing same error twice. Drop this and just handle error
> >> printing in sky1_pinctrl_probe_dt().
> >> Especially that you now print errors on ENOMEM.
> >>
> >
> > Sorry, this print message is only once, not twice, please give more
> > information
> 
> Trigger the error and check how many error messages you see. I see two.
> You should know your code better than me...
> 

There are two pin-controller on sky1. They share the same driver. The probe is called twice. 

So we see the print message twice.

> >
> >>> +             return ret;
> >>> +     }
> >>> +
> >>> +     pinctrl_provide_dummies();
> >>> +     dev_info(&pdev->dev, "initialized SKY1 pinctrl driver\n");
> >>
> >>
> >> No, please drop. Drivers should be silent on success.
> >>
> >
> > Ok, replace dev_info with dev_dbg next version
> 
> 
> No, it is completely redundant. You are duplicating existing mechanism for no
> gain at all.
> 

OK, we delete it on next version

> Best regards,
> Krzysztof

Best wishes
Gary

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ