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: <f5942d82-a7ce-46e1-ba13-ec2beef3403f@web.de>
Date: Mon, 2 Jun 2025 20:44:04 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Samuel Kayode <samuel.kayode@...oirfairelinux.com>,
 linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
 linux-input@...r.kernel.org, Mark Brown <broonie@...nel.org>,
 Conor Dooley <conor+dt@...nel.org>,
 Dmitry Torokhov <dmitry.torokhov@...il.com>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Lee Jones <lee@...nel.org>,
 Liam Girdwood <lgirdwood@...il.com>, Rob Herring <robh@...nel.org>,
 Sebastian Reichel <sre@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Abel Vesa <abelvesa@...nel.org>,
 Abel Vesa <abelvesa@...ux.com>, Enric Balletbo i Serra
 <eballetbo@...il.com>, Robin Gong <b38343@...escale.com>,
 Robin Gong <yibin.gong@....com>
Subject: Re: [PATCH v3 5/6] power: supply: pf1550: add battery charger support

…
> +++ b/drivers/power/supply/pf1550-charger.c
> @@ -0,0 +1,639 @@
…
> +static void pf1550_charger_irq_work(struct work_struct *work)
> +{
…
> +	mutex_lock(&chg->mutex);
> +
> +	for (i = 0; i < PF1550_CHARGER_IRQ_NR; i++) {
…
> +	mutex_unlock(&chg->mutex);
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&chg->mutex);”?
https://elixir.bootlin.com/linux/v6.15/source/include/linux/mutex.h#L201

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ