* [PATCH v3] drm: Improve the output_poll_changed description
@ 2021-01-18 1:22 ZhiJie.Zhang
2021-01-18 6:53 ` Thomas Zimmermann
0 siblings, 1 reply; 3+ messages in thread
From: ZhiJie.Zhang @ 2021-01-18 1:22 UTC (permalink / raw)
To: daniel, maarten.lankhorst, mripard, tzimmermann, airlied
Cc: dri-devel, linux-kernel, zhangzhijie
From: zhangzhijie <zhangzhijie@loongson.cn>
this callback was used by drm_kms_helper_hotplug_event()
V2: (Thanks for Daniel's suggestions)
- remove the FIXME below.since with the drm_client
- infrastructure and the generic fbdev emulation we've
- resolved this all very neatly now.
V3: Add comments that This hook is deprecated
- new implementation methods instead of this hook
Signed-off-by: zhangzhijie <zhangzhijie@loongson.cn>
Signed-off-by: ZhiJie.Zhang <zhangzhijie@loongson.cn>
---
include/drm/drm_mode_config.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
index ab424ddd7665..a084482d579a 100644
--- a/include/drm/drm_mode_config.h
+++ b/include/drm/drm_mode_config.h
@@ -103,14 +103,14 @@ struct drm_mode_config_funcs {
* Callback used by helpers to inform the driver of output configuration
* changes.
*
- * Drivers implementing fbdev emulation with the helpers can call
- * drm_fb_helper_hotplug_changed from this hook to inform the fbdev
+ * Drivers implementing fbdev emulation with the helpers. Drivers use
+ * drm_kms_helper_hotplug_event() to call this hook to inform the fbdev
* helper of output changes.
*
- * FIXME:
- *
- * Except that there's no vtable for device-level helper callbacks
- * there's no reason this is a core function.
+ * This hook is deprecated, drivers should instead use
+ * drm_fbdev_generic_setup() which takes care of any necessary
+ * hotplug event forwarding already without further involvement by
+ * the driver.
*/
void (*output_poll_changed)(struct drm_device *dev);
--
2.29.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] drm: Improve the output_poll_changed description
2021-01-18 1:22 [PATCH v3] drm: Improve the output_poll_changed description ZhiJie.Zhang
@ 2021-01-18 6:53 ` Thomas Zimmermann
2021-01-18 7:46 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Zimmermann @ 2021-01-18 6:53 UTC (permalink / raw)
To: ZhiJie.Zhang, daniel, maarten.lankhorst, mripard, airlied
Cc: dri-devel, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 2199 bytes --]
Hi
Am 18.01.21 um 02:22 schrieb ZhiJie.Zhang:
> From: zhangzhijie <zhangzhijie@loongson.cn>
>
> this callback was used by drm_kms_helper_hotplug_event()
>
> V2: (Thanks for Daniel's suggestions)
> - remove the FIXME below.since with the drm_client
> - infrastructure and the generic fbdev emulation we've
> - resolved this all very neatly now.
>
> V3: Add comments that This hook is deprecated
> - new implementation methods instead of this hook
>
> Signed-off-by: zhangzhijie <zhangzhijie@loongson.cn>
> Signed-off-by: ZhiJie.Zhang <zhangzhijie@loongson.cn>
> ---
> include/drm/drm_mode_config.h | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
> index ab424ddd7665..a084482d579a 100644
> --- a/include/drm/drm_mode_config.h
> +++ b/include/drm/drm_mode_config.h
> @@ -103,14 +103,14 @@ struct drm_mode_config_funcs {
> * Callback used by helpers to inform the driver of output configuration
> * changes.
> *
> - * Drivers implementing fbdev emulation with the helpers can call
> - * drm_fb_helper_hotplug_changed from this hook to inform the fbdev
> + * Drivers implementing fbdev emulation with the helpers. Drivers use
> + * drm_kms_helper_hotplug_event() to call this hook to inform the fbdev
I don't understand this. Maybe it's "Drivers implementing fbdev
emulation use drm_kms_helper_hotplug_event() to call ..." ?
Best regards
Thomas
> * helper of output changes.
> *
> - * FIXME:
> - *
> - * Except that there's no vtable for device-level helper callbacks
> - * there's no reason this is a core function.
> + * This hook is deprecated, drivers should instead use
> + * drm_fbdev_generic_setup() which takes care of any necessary
> + * hotplug event forwarding already without further involvement by
> + * the driver.
> */
> void (*output_poll_changed)(struct drm_device *dev);
>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] drm: Improve the output_poll_changed description
2021-01-18 6:53 ` Thomas Zimmermann
@ 2021-01-18 7:46 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2021-01-18 7:46 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: ZhiJie.Zhang, Maarten Lankhorst, Maxime Ripard, Dave Airlie,
dri-devel, Linux Kernel Mailing List
On Mon, Jan 18, 2021 at 7:53 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> Hi
>
> Am 18.01.21 um 02:22 schrieb ZhiJie.Zhang:
> > From: zhangzhijie <zhangzhijie@loongson.cn>
> >
> > this callback was used by drm_kms_helper_hotplug_event()
> >
> > V2: (Thanks for Daniel's suggestions)
> > - remove the FIXME below.since with the drm_client
> > - infrastructure and the generic fbdev emulation we've
> > - resolved this all very neatly now.
> >
> > V3: Add comments that This hook is deprecated
> > - new implementation methods instead of this hook
> >
> > Signed-off-by: zhangzhijie <zhangzhijie@loongson.cn>
> > Signed-off-by: ZhiJie.Zhang <zhangzhijie@loongson.cn>
> > ---
> > include/drm/drm_mode_config.h | 12 ++++++------
> > 1 file changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
> > index ab424ddd7665..a084482d579a 100644
> > --- a/include/drm/drm_mode_config.h
> > +++ b/include/drm/drm_mode_config.h
> > @@ -103,14 +103,14 @@ struct drm_mode_config_funcs {
> > * Callback used by helpers to inform the driver of output configuration
> > * changes.
> > *
> > - * Drivers implementing fbdev emulation with the helpers can call
> > - * drm_fb_helper_hotplug_changed from this hook to inform the fbdev
> > + * Drivers implementing fbdev emulation with the helpers. Drivers use
> > + * drm_kms_helper_hotplug_event() to call this hook to inform the fbdev
>
> I don't understand this. Maybe it's "Drivers implementing fbdev
> emulation use drm_kms_helper_hotplug_event() to call ..." ?
Yeah this just doesn't make sense now, this is not the interesting
information. Removing the hint that this should be implemented using
drm_fb_helper_hotplug_changed is really not good.
-Daniel
>
> Best regards
> Thomas
>
> > * helper of output changes.
> > *
> > - * FIXME:
> > - *
> > - * Except that there's no vtable for device-level helper callbacks
> > - * there's no reason this is a core function.
> > + * This hook is deprecated, drivers should instead use
> > + * drm_fbdev_generic_setup() which takes care of any necessary
> > + * hotplug event forwarding already without further involvement by
> > + * the driver.
> > */
> > void (*output_poll_changed)(struct drm_device *dev);
> >
> >
>
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Felix Imendörffer
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-18 7:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 1:22 [PATCH v3] drm: Improve the output_poll_changed description ZhiJie.Zhang
2021-01-18 6:53 ` Thomas Zimmermann
2021-01-18 7:46 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®