public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] drm: Check polling initialized before
@ 2024-02-02  6:42 Shradha Gupta
  2024-02-02  6:43 ` [PATCH v4, 1/2] drm: Check output polling initialized before disabling Shradha Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Shradha Gupta @ 2024-02-02  6:42 UTC (permalink / raw)
  To: linux-kernel, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, dri-devel, Saurabh Singh Sengar
  Cc: Shradha Gupta, Shradha Gupta

This patchset consists of sanity checks before enabling/disabling
output polling to make sure we do not call polling enable and disable
functions when polling for the device is not initialized or is now
uninitialized(by drm_kms_helper_poll_fini() function)

The first patch consists of these checks in
drm_kms_helper_poll_disable() and drm_kms_helper_poll_enable() calls.
It further flags a warning if a caller violates this. It also adds
these checks in drm_mode_config_helper_resume() and
drm_mode_config_helper_suspend() calls to avoid this warning.

The second patch adds a similar missing check in
drm_helper_probe_single_connector_modes() function that is exposed by
the new warning introduced in the first patch.

Shradha Gupta (2):
  drm: Check output polling initialized before disabling
  drm: Check polling initialized before enabling in
    drm_helper_probe_single_connector_modes

 drivers/gpu/drm/drm_modeset_helper.c | 19 ++++++++++++++++---
 drivers/gpu/drm/drm_probe_helper.c   | 21 +++++++++++++++++----
 2 files changed, 33 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-28 14:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-02  6:42 [PATCH v4 0/2] drm: Check polling initialized before Shradha Gupta
2024-02-02  6:43 ` [PATCH v4, 1/2] drm: Check output polling initialized before disabling Shradha Gupta
2024-02-02  6:43 ` [PATCH v4, 2/2] drm: Check polling initialized before enabling in drm_helper_probe_single_connector_modes Shradha Gupta
2024-02-06 14:07 ` [PATCH v4 0/2] drm: Check polling initialized before Daniel Vetter
2024-02-20  6:02   ` Shradha Gupta
2024-02-28 14:08     ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox