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: <CACRpkda2ejW2HoOr3rTRrx7CK6qyoV--S8dRJ9sem6CcGejY6Q@mail.gmail.com>
Date: Fri, 27 Dec 2024 17:10:31 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Mukesh Ojha <mukesh.ojha@....qualcomm.com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pinctrl: Fix the clean up on pinconf_apply_setting failure

Hi Mukesh,

thanks for your patch!

On Tue, Dec 24, 2024 at 9:45 AM Mukesh Ojha
<mukesh.ojha@....qualcomm.com> wrote:

> When some client does devm_pinctrl_get() followed by
> pinctrl_select_state() that does pinmux first successfully and later
> during config setting it sets the wrong drive strenght to the pin due to
> which pinconf_apply_setting fails. Currently, on failure during config
> setting is implemented as if pinmux has failed for one of the pin but
> that does not seem right and need to undo the pinmux for all the pin if
> config setting fails.
>
> Current commit does a bit refactor to reuse the code and tries to clean
> up mux setting on config setting failure.
>
> Signed-off-by: Mukesh Ojha <mukesh.ojha@....qualcomm.com>

Hats off, it's a real nice patch. I bet these are design flaws from
my initial implementation ~13 years ago.

I have applied it for -next (v6.14) while we test it in linux-next and
think about if we should even back-port this to stable.

Yours,
Linus Walleij

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ