[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YvuAE0Y3QbAf9Zh/@sirena.org.uk>
Date: Tue, 16 Aug 2022 12:31:31 +0100
From: Mark Brown <broonie@...nel.org>
To: "Vaittinen, Matti" <Matti.Vaittinen@...rohmeurope.com>
Cc: Matti Vaittinen <mazziesaccount@...il.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Stephen Boyd <sboyd@...nel.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
Johan Hovold <johan+linaro@...nel.org>,
Neil Armstrong <narmstrong@...libre.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Kevin Hilman <khilman@...libre.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Daniel Vetter <daniel@...ll.ch>,
"linux-amlogic@...ts.infradead.org"
<linux-amlogic@...ts.infradead.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Jonathan Cameron <jic23@...nel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Liam Girdwood <lgirdwood@...il.com>,
Michael Hennerich <Michael.Hennerich@...log.com>,
Miaoqian Lin <linmq006@...il.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Alexandru Tachici <alexandru.tachici@...log.com>,
Jerome Brunet <jbrunet@...libre.com>,
Andrzej Hajda <andrzej.hajda@...el.com>,
Jonathan Corbet <corbet@....net>,
Guenter Roeck <linux@...ck-us.net>,
Jonas Karlman <jonas@...boo.se>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Michael Turq uette <mturquette@...libre.com>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
Jean Delvare <jdelvare@...e.com>,
Alexandru Ardelean <aardelean@...iqon.com>,
"linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>,
"linux-clk@...r.kernel.org" <linux-clk@...r.kernel.org>,
Nuno Sá <nuno.sa@...log.com>,
Robert Foss <robert.foss@...aro.org>,
Aswath Govindraju <a-govindraju@...com>,
David Airlie <airlied@...ux.ie>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>
Subject: Re: (subset) [PATCH v2 0/7] Devm helpers for regulator get and enable
On Tue, Aug 16, 2022 at 11:06:21AM +0000, Vaittinen, Matti wrote:
> I wonder if writing such 'release callbacks' is compulsory? I mean, if I
> was writing a driver to some new (to me) subsystem and was required to
> write an explicit release-callback for a resource - then it'd surely
> rang a bell about potentially double freeing stuff with devm. Especially
> if the doc stated the callback can be called after the driver has been
> detached.
Generally yes, thoguh people can and do leave them blank and it's easy
enough to do some cleanup in there that assumes that the device is still
present and not think the device might've gone away especially if the
hardware isn't practically hotpluggable.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists