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: <CAJRtX8S0Zg7-Rba6ziaAoBi-2Bs3N0NfpguF40T16yObaxCZiQ@mail.gmail.com>
Date: Mon, 7 Apr 2025 13:38:33 +0800
From: Jingbao Qiu <qiujingbao.dlmu@...il.com>
To: Thomas Bonnefille <thomas.bonnefille@...tlin.com>
Cc: Uwe Kleine-König <ukleinek@...nel.org>, robh@...nel.org, 
	krzk+dt@...nel.org, conor+dt@...nel.org, unicorn_wang@...look.com, 
	dlan@...too.org, linux-pwm@...r.kernel.org, devicetree@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v7 2/2] pwm: sophgo: add pwm support for Sophgo CV1800 SoC

On Sun, Apr 6, 2025 at 8:16 AM Thomas Bonnefille
<thomas.bonnefille@...tlin.com> wrote:
>
> Hello,
>
> On Sat Jun 1, 2024 at 1:53 PM CEST, Uwe Kleine-König wrote:
> > On Wed, May 01, 2024 at 04:32:42PM +0800, Jingbao Qiu wrote:
> >> [...]
> >> +    if ((state & BIT(pwm->hwpwm)) && enable)
> >> +            regmap_update_bits(priv->map, PWM_CV1800_OE,
> >> +                               PWM_CV1800_OE_MASK(pwm->hwpwm),
> >> +                               PWM_CV1800_REG_ENABLE(pwm->hwpwm));
> >
> > This looks strange. If BIT(hwpwm) is already set, set it again?!
> > Also if you used the caching implemented in regmap, you don't need to
> > make this conditional.
> >
>
> I was testing the series and noticed indeed an issue in this driver at
> those lines. If PWM_CV1800_OE isn't set by something else than the
> kernel it will never be set and so, there will never be a PWM outputted.
>
> Using :
>     if (!(state & BIT(pwm->hwpwm)) && enable)
> Solved the issue but as Uwe said you can probably rely on regmap caching
> to avoid this condition.
>
> >
> > ...
> >
>
> Do you plan on sending a new iteration some day ? I may have some time
> to continue the upstreaming process if you need to.
>
I am so happy you can continue finish this patch.

Best regards
Jingbao Qiu

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ