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: <20251222035239-GYB1977180@gentoo.org>
Date: Mon, 22 Dec 2025 11:52:39 +0800
From: Yixun Lan <dlan@...too.org>
To: Troy Mitchell <troy.mitchell@...ux.spacemit.com>
Cc: Linus Walleij <linusw@...nel.org>, Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>, linux-gpio@...r.kernel.org,
	devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
	spacemit@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFC 3/3] pinctrl: spacemit: k3: adjust drive strength and
 schmitter trigger

Hi Troy,

On 10:54 Mon 22 Dec     , Troy Mitchell wrote:
> Hi Yixun,
> 
> On Sat, Dec 20, 2025 at 06:14:55PM +0800, Yixun Lan wrote:
> > K3 SoC expand drive strength to 4 bits which support even larger
> > settings table comparing to old SoC generation. Also schmitter trigger
> > setting is changed to 1 bit.
> > 
> > Signed-off-by: Yixun Lan <dlan@...too.org>
> > ---
> >  drivers/pinctrl/spacemit/pinctrl-k1.c | 163 ++++++++++++++++++++++++----------
> >  1 file changed, 116 insertions(+), 47 deletions(-)
> > 
> > diff --git a/drivers/pinctrl/spacemit/pinctrl-k1.c b/drivers/pinctrl/spacemit/pinctrl-k1.c
> > index 441817f539e3..8ca247fb8ba0 100644
> > --- a/drivers/pinctrl/spacemit/pinctrl-k1.c
> > +++ b/drivers/pinctrl/spacemit/pinctrl-k1.c
> [...]
> > -		val = spacemit_get_driver_strength(type, drv_strength);
> > +		val = spacemit_get_driver_strength(type, dconf, drv_strength);
> >  
> > -		v &= ~PAD_DRIVE;
> > -		v |= FIELD_PREP(PAD_DRIVE, val);
> > +		v &= ~dconf->drive_mask;
> > +		v |= (arg << __ffs(dconf->drive_mask)) & dconf->drive_mask;
>             ^^^^
> use val here.
 should be s/arg/val/, thanks for the catch!

-- 
Yixun Lan (dlan)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ