From: Helge Deller <deller@gmx.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Yihao Han <hanyihao@vivo.com>,
Javier Martinez Canillas <javierm@redhat.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Alexander Shiyan <shc_work@mail.ru>,
Dongliang Mu <dzm91@hust.edu.cn>, Peter Jones <pjones@redhat.com>,
Gaosheng Cui <cuigaosheng1@huawei.com>,
Timur Tabi <timur@kernel.org>,
Xuezhi Zhang <zhangxuezhi1@coolpad.com>,
Jiasheng Jiang <jiasheng@iscas.ac.cn>,
Ferenc Bakonyi <fero@drama.obuda.kando.hu>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Stephen Kitt <steve@sk2.org>,
Daniel Thompson <daniel.thompson@linaro.org>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Arnd Bergmann <arnd@arndb.de>, Tony Lindgren <tony@atomide.com>,
Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
Yu Zhe <yuzhe@nfschina.com>, Xu Panda <xu.panda@zte.com.cn>,
Zhang Qilong <zhangqilong3@huawei.com>,
Hyunwoo Kim <imv4bel@gmail.com>,
Yang Yingliang <yangyingliang@huawei.com>,
Robert Jarzmik <robert.jarzmik@free.fr>,
Ulf Hansson <ulf.hansson@linaro.org>,
Wang Qing <wangqing@vivo.com>,
Kristoffer Ericson <kristoffer.ericson@gmail.com>,
Jingoo Han <jingoohan1@gmail.com>,
ye xingchen <ye.xingchen@zte.com.cn>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Hans de Goede <hdegoede@redhat.com>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Zeng Heng <zengheng4@huawei.com>,
Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Michal Simek <michal.simek@xilinx.com>,
linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
NXP Linux Team <linux-imx@nxp.com>,
kernel@pengutronix.de, linux-nvidia@lists.surfsouth.com,
linux-omap@vger.kernel.org, Fabio Estevam <festevam@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 00/51] video: fbdev: Convert to platform remove callback returning void
Date: Sun, 19 Mar 2023 22:41:36 +0100 [thread overview]
Message-ID: <d4e1a2ff-6c01-4268-0874-5c3fecb74d89@gmx.de> (raw)
In-Reply-To: <20230319210808.apsba7oj32kt7ree@pengutronix.de>
On 3/19/23 22:08, Uwe Kleine-König wrote:
> Hello,
>
> [Dropped Bartlomiej Zolnierkiewicz and Michal Januszewski from Cc, their
> email addresses bounced]
>
> On Sun, Mar 19, 2023 at 07:04:54PM +0100, Helge Deller wrote:
>> Hello Uwe,
>>
>> On 3/19/23 00:53, Uwe Kleine-König wrote:
>>> this series adapts the platform drivers below drivers/video/fbdev to use the
>>> .remove_new() callback. Compared to the traditional .remove() callback
>>> .remove_new() returns no value. This is a good thing because the driver core
>>> doesn't (and cannot) cope for errors during remove. The only effect of a
>>> non-zero return value in .remove() is that the driver core emits a warning. The
>>> device is removed anyhow and an early return from .remove() usually yields a
>>> resource leak.
>>>
>>> By changing the remove callback to return void driver authors cannot
>>> reasonably assume any more that there is some kind of cleanup later.
>>>
>>> The first patch simplifies the remove callback of one driver to obviously
>>> always return zero. After that all drivers are converted trivially to
>>> .remove_new().
>>
>> Thanks for that patch series. It's a nice cleanup.
>> I've applied it to the fbdev "for-next" git tree for now to get some compile testing.
>> I hope that's ok for you.
>>
>> Regarding the new "remove_new" struct member I'd prefer a better name but don't
>> have any idea yet...
>
> Ideally we won't have to life with it for long. The eventual plan is to
> switch back to "remove" once all drivers are converted. So I didn't
> think intensively about a better name.
Ok.
> Did you know that struct i2c_driver has a "temporary" .probe_new()
> callback since 2016?
No, I didn't knew. Nice :-)
Helge
next prev parent reply other threads:[~2023-03-19 21:44 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-18 23:53 [PATCH 00/51] video: fbdev: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 01/51] video: fbdev: au1100fb: Drop if with an always false condition Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 02/51] video: fbdev: arcfb: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 03/51] video: fbdev: au1100fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 04/51] video: fbdev: au1200fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 05/51] video: fbdev: broadsheetfb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 06/51] video: fbdev: bw2: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 07/51] video: fbdev: cg14: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 08/51] video: fbdev: cg3: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 09/51] video: fbdev: cg6: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 10/51] video: fbdev: clps711x-fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 11/51] video: fbdev: cobalt_lcdfb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 12/51] video: fbdev: da8xx-fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 13/51] video: fbdev: efifb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 14/51] video: fbdev: ep93xx-fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 15/51] video: fbdev: ffb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 16/51] video: fbdev: fsl-diu-fb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 17/51] video: fbdev: gbefb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 18/51] video: fbdev: goldfishfb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 19/51] video: fbdev: grvga: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 20/51] video: fbdev: hecubafb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 21/51] video: fbdev: hgafb: " Uwe Kleine-König
2023-03-18 23:53 ` [PATCH 22/51] video: fbdev: hitfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 23/51] video: fbdev: imxfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 24/51] video: fbdev: leo: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 25/51] video: fbdev: mb862xx: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 26/51] video: fbdev: metronomefb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 27/51] video: fbdev: mx3fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 28/51] video: fbdev: ocfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 29/51] video: fbdev: offb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 30/51] video: fbdev: omapfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 31/51] video: fbdev: p9100: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 32/51] video: fbdev: platinumfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 33/51] video: fbdev: pxa168fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 34/51] video: fbdev: pxa3xx-gcu: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 35/51] video: fbdev: pxafb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 36/51] video: fbdev: s1d13xxxfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 37/51] video: fbdev: s3c-fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 38/51] video: fbdev: sh7760fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 39/51] video: fbdev: sh_mobile_lcdcfb: " Uwe Kleine-König
2023-03-19 9:16 ` Geert Uytterhoeven
2023-03-18 23:54 ` [PATCH 40/51] video: fbdev: simplefb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 41/51] video: fbdev: sm501fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 42/51] video: fbdev: tcx: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 43/51] video: fbdev: uvesafb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 44/51] video: fbdev: vesafb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 45/51] video: fbdev: vfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 46/51] video: fbdev: vga16fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 47/51] video: fbdev: via: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 48/51] video: fbdev: vt8500lcdfb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 49/51] video: fbdev: wm8505fb: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 50/51] video: fbdev: wmt_ge_rops: " Uwe Kleine-König
2023-03-18 23:54 ` [PATCH 51/51] video: fbdev: xilinxfb: " Uwe Kleine-König
2023-03-19 18:04 ` [PATCH 00/51] video: fbdev: " Helge Deller
2023-03-19 21:08 ` Uwe Kleine-König
2023-03-19 21:41 ` Helge Deller [this message]
2023-05-30 14:02 ` Uwe Kleine-König
2023-05-30 16:12 ` Helge Deller
2023-05-30 16:27 ` Uwe Kleine-König
2023-05-30 16:34 ` Helge Deller
2023-03-20 10:03 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4e1a2ff-6c01-4268-0874-5c3fecb74d89@gmx.de \
--to=deller@gmx.de \
--cc=FlorianSchandinat@gmx.de \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=cuigaosheng1@huawei.com \
--cc=daniel.thompson@linaro.org \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=dzm91@hust.edu.cn \
--cc=fero@drama.obuda.kando.hu \
--cc=festevam@gmail.com \
--cc=geert+renesas@glider.be \
--cc=hanyihao@vivo.com \
--cc=hdegoede@redhat.com \
--cc=imv4bel@gmail.com \
--cc=javierm@redhat.com \
--cc=jiapeng.chong@linux.alibaba.com \
--cc=jiasheng@iscas.ac.cn \
--cc=jingoohan1@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kristoffer.ericson@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-nvidia@lists.surfsouth.com \
--cc=linux-omap@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=pjones@redhat.com \
--cc=robert.jarzmik@free.fr \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shc_work@mail.ru \
--cc=steve@sk2.org \
--cc=timur@kernel.org \
--cc=tony@atomide.com \
--cc=tzimmermann@suse.de \
--cc=u.kleine-koenig@pengutronix.de \
--cc=ulf.hansson@linaro.org \
--cc=wangqing@vivo.com \
--cc=wsa+renesas@sang-engineering.com \
--cc=xu.panda@zte.com.cn \
--cc=yangyingliang@huawei.com \
--cc=ye.xingchen@zte.com.cn \
--cc=yuzhe@nfschina.com \
--cc=zengheng4@huawei.com \
--cc=zhangqilong3@huawei.com \
--cc=zhangxuezhi1@coolpad.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).