From: Sam Ravnborg <sam@ravnborg•org>
To: Thomas Zimmermann <tzimmermann@suse•de>,
Daniel Vetter <daniel@ffwll•ch>,
Laurent Pinchart <laurent.pinchart@ideasonboard•com>,
dri-devel@lists•freedesktop.org
Cc: Alexandre Belloni <alexandre.belloni@bootlin•com>,
linux-samsung-soc@vger•kernel.org,
Boris Brezillon <bbrezillon@kernel•org>,
David Airlie <airlied@linux•ie>,
Andrzej Pietrasiewicz <andrzej.p@collabora•com>,
NXP Linux Team <linux-imx@nxp•com>,
Jose Roberto de Souza <jose.souza@intel•com>,
virtualization@lists•linux-foundation.org,
linux-renesas-soc@vger•kernel.org,
linux-rockchip@lists•infradead.org,
Ludovic Desroches <ludovic.desroches@microchip•com>,
linux-mediatek@lists•infradead.org,
Gerd Hoffmann <kraxel@redhat•com>,
linux-amlogic@lists•infradead.org, linux-tegra@vger•kernel.org,
Dave Airlie <airlied@redhat•com>,
amd-gfx@lists•freedesktop.org,
linux-stm32@st-md-mailman•stormreply.com,
linux-arm-kernel@lists•infradead.org,
Emil Velikov <emil.velikov@collabora•com>
Subject: Re: [PATCH v1 0/3] drm: drm_encoder_init() => drm_encoder_init_funcs()
Date: Thu, 19 Mar 2020 15:19:54 +0100 [thread overview]
Message-ID: <20200319141954.GA25036@ravnborg.org> (raw)
In-Reply-To: <20200313201744.19773-1-sam@ravnborg.org>
On Fri, Mar 13, 2020 at 09:17:41PM +0100, Sam Ravnborg wrote:
> Thomas Zimmermann had made a nice patch-set that introduced
> drm_simple_encoder_init() which is already present in drm-misc-next.
>
> While looking at this it was suddenly obvious to me that
> this was functionalty that really should be included in drm_encoder.c
> The case where the core could handle the callback is pretty
> common and not part of the simple pipe line.
>
> So after some dialog on dri-devel the conclusion was to go for
> a change like this:
>
> drm_encoder_init_funcs() for all users that specified a
> drm_encoder_funcs to extend the functionality.
>
> drm_encoder_init() for all users that did not
> need to extend the basic functionality with
> drm_encoder_funcs.
>
> A similar approach with a _funcs() prefix is used elsewhere in drm/
>
> This required a rename of the existing users, and
> a follow-up patch that moves drm_simple_encoder_init()
> to drm_encoder.c
>
> Patches 3 in this set demonstrate the use of drm_encoder_init().
> There are many more drivers that can be converted as Thomas
> has already demonstrated.
>
> This is all based on work done by Thomas Zimmermann,
> I just wanted to implement my suggestion so
> we could select the best way forward.
>
> Note: Daniel Vetter has hinted the approach implemented
> here smelled like middle-layer.
> IMO this is not so, it is just a way to handle cleanup
> for the simple cases.
We discussed this patch-set briefly on irc.
With the upcoming drmm_ changes and such this is bad timing..
And in the end this may be pointless code-chrunch.
Patch-set shelfed for now - may re-visit it later.
Sam
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-03-19 14:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-13 20:17 [PATCH v1 0/3] drm: drm_encoder_init() => drm_encoder_init_funcs() Sam Ravnborg
2020-03-13 20:17 ` [PATCH v1 1/3] " Sam Ravnborg
2020-03-13 20:17 ` [PATCH v1 2/3] drm: drm_simple_encoder_init() => drm_encoder_init() Sam Ravnborg
2020-03-13 20:17 ` [PATCH v1 3/3] drm/atmel-hlcdc: Use drm_encoder_init() Sam Ravnborg
2020-03-19 14:19 ` Sam Ravnborg [this message]
2020-03-19 17:05 ` [PATCH v1 0/3] drm: drm_encoder_init() => drm_encoder_init_funcs() Sam Ravnborg
2020-03-24 8:33 ` 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=20200319141954.GA25036@ravnborg.org \
--to=sam@ravnborg$(echo .)org \
--cc=airlied@linux$(echo .)ie \
--cc=airlied@redhat$(echo .)com \
--cc=alexandre.belloni@bootlin$(echo .)com \
--cc=amd-gfx@lists$(echo .)freedesktop.org \
--cc=andrzej.p@collabora$(echo .)com \
--cc=bbrezillon@kernel$(echo .)org \
--cc=daniel@ffwll$(echo .)ch \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=emil.velikov@collabora$(echo .)com \
--cc=jose.souza@intel$(echo .)com \
--cc=kraxel@redhat$(echo .)com \
--cc=laurent.pinchart@ideasonboard$(echo .)com \
--cc=linux-amlogic@lists$(echo .)infradead.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-imx@nxp$(echo .)com \
--cc=linux-mediatek@lists$(echo .)infradead.org \
--cc=linux-renesas-soc@vger$(echo .)kernel.org \
--cc=linux-rockchip@lists$(echo .)infradead.org \
--cc=linux-samsung-soc@vger$(echo .)kernel.org \
--cc=linux-stm32@st-md-mailman$(echo .)stormreply.com \
--cc=linux-tegra@vger$(echo .)kernel.org \
--cc=ludovic.desroches@microchip$(echo .)com \
--cc=tzimmermann@suse$(echo .)de \
--cc=virtualization@lists$(echo .)linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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