[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223132641.3e2ba16c@dellmb>
Date: Fri, 23 Feb 2024 13:26:41 +0100
From: Marek Behún <kabel@...nel.org>
To: andy.shevchenko@...il.com, George Stark <gnstark@...utedevices.com>
Cc: linux-kernel@...r.kernel.org, Hans de Goede <hdegoede@...hat.com>, Matti
Vaittinen <mazziesaccount@...il.com>, Linus Walleij
<linus.walleij@...aro.org>, Bartosz Golaszewski <brgl@...ev.pl>, Lucas De
Marchi <lucas.demarchi@...el.com>, Oded Gabbay <ogabbay@...nel.org>, Thomas
Hellström <thomas.hellstrom@...ux.intel.com>, Maarten
Lankhorst <maarten.lankhorst@...ux.intel.com>, Maxime Ripard
<mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>, David Airlie
<airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>, Aleksandr Mezin
<mezin.alexander@...il.com>, Jean Delvare <jdelvare@...e.com>, Guenter
Roeck <linux@...ck-us.net>, Pavel Machek <pavel@....cz>, Lee Jones
<lee@...nel.org>, Sebastian Reichel <sre@...nel.org>, Matthias Brugger
<matthias.bgg@...il.com>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, linux-gpio@...r.kernel.org,
intel-xe@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-hwmon@...r.kernel.org, linux-leds@...r.kernel.org,
linux-pm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH 1/2] devm-helpers: Add resource managed version of mutex
init
On Thu, 22 Feb 2024 23:42:11 +0200
andy.shevchenko@...il.com wrote:
> Thu, Feb 22, 2024 at 03:58:37PM +0100, Marek Behún kirjoitti:
> > A few drivers are doing resource-managed mutex initialization by
> > implementing ad-hoc one-liner mutex dropping functions and using them
> > with devm_add_action_or_reset(). Help drivers avoid these repeated
> > one-liners by adding managed version of mutex initialization.
> >
> > Use the new function devm_mutex_init() in the following drivers:
> > drivers/gpio/gpio-pisosr.c
> > drivers/gpio/gpio-sim.c
> > drivers/gpu/drm/xe/xe_hwmon.c
> > drivers/hwmon/nzxt-smart2.c
> > drivers/leds/leds-is31fl319x.c
> > drivers/power/supply/mt6370-charger.c
> > drivers/power/supply/rt9467-charger.c
>
> Pardon me, but why?
>
> https://lore.kernel.org/linux-leds/20231214173614.2820929-1-gnstark@salutedevices.com/
>
> Can you cooperate, folks, instead of doing something independently?
Thanks Andy for pointing to George's patch series.
I can drop the mutex_init() part and add just the debugfs part.
Marek
Powered by blists - more mailing lists