From: Thomas Zimmermann <tzimmermann@suse.de>
To: Jani Nikula <jani.nikula@intel.com>, dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 0/8] drm: fix .get_modes() return values
Date: Fri, 8 Mar 2024 17:24:04 +0100 [thread overview]
Message-ID: <f765ad88-d166-488c-a516-ccac462b6dbd@suse.de> (raw)
In-Reply-To: <cover.1709913674.git.jani.nikula@intel.com>
Hi
Am 08.03.24 um 17:03 schrieb Jani Nikula:
> The drm_connector_helper_funcs .get_modes() hooks are not supposed to
> return negative error codes. Some do, but they're not checked, and could
> lead to mysterious errors. Fix this all over the place.
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
for the series.
Do you plan to make the return type an unsigned int eventually?
Best regards
Thomas
>
> BR,
> Jani.
>
> Jani Nikula (8):
> drm/probe-helper: warn about negative .get_modes()
> drm/panel: do not return negative error codes from
> drm_panel_get_modes()
> drm/exynos: do not return negative values from .get_modes()
> drm/bridge: lt8912b: do not return negative values from .get_modes()
> drm/imx/ipuv3: do not return negative values from .get_modes()
> drm/vc4: hdmi: do not return negative values from .get_modes()
> drm/bridge: lt9611uxc: use int for holding number of modes
> drm/exynos: simplify the return value handling in
> exynos_dp_get_modes()
>
> drivers/gpu/drm/bridge/lontium-lt8912b.c | 16 +++++++---------
> drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +-
> drivers/gpu/drm/drm_panel.c | 17 +++++++++++------
> drivers/gpu/drm/drm_probe_helper.c | 7 +++++++
> drivers/gpu/drm/exynos/exynos_dp.c | 7 +++----
> drivers/gpu/drm/exynos/exynos_drm_vidi.c | 4 ++--
> drivers/gpu/drm/exynos/exynos_hdmi.c | 4 ++--
> drivers/gpu/drm/imx/ipuv3/parallel-display.c | 4 ++--
> drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
> include/drm/drm_modeset_helper_vtables.h | 3 ++-
> 10 files changed, 38 insertions(+), 28 deletions(-)
>
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
next prev parent reply other threads:[~2024-03-08 18:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-08 16:03 [PATCH 0/8] drm: fix .get_modes() return values Jani Nikula
2024-03-08 16:03 ` [PATCH 1/8] drm/probe-helper: warn about negative .get_modes() Jani Nikula
2024-03-08 16:03 ` [PATCH 2/8] drm/panel: do not return negative error codes from drm_panel_get_modes() Jani Nikula
2024-03-08 16:52 ` Jessica Zhang
2024-03-11 8:23 ` Neil Armstrong
2024-03-08 16:03 ` [PATCH 3/8] drm/exynos: do not return negative values from .get_modes() Jani Nikula
2024-03-08 16:03 ` [PATCH 4/8] drm/bridge: lt8912b: " Jani Nikula
2024-03-08 16:03 ` [PATCH 5/8] drm/imx/ipuv3: " Jani Nikula
2024-03-08 16:41 ` Philipp Zabel
2024-03-08 16:03 ` [PATCH 6/8] drm/vc4: hdmi: " Jani Nikula
2024-03-08 16:06 ` Maxime Ripard
2024-03-08 16:03 ` [PATCH 7/8] drm/bridge: lt9611uxc: use int for holding number of modes Jani Nikula
2024-03-11 8:28 ` Neil Armstrong
2024-03-11 9:18 ` Dmitry Baryshkov
2024-03-08 16:03 ` [PATCH 8/8] drm/exynos: simplify the return value handling in exynos_dp_get_modes() Jani Nikula
2024-03-08 16:24 ` Thomas Zimmermann [this message]
2024-03-13 11:47 ` [PATCH 0/8] drm: fix .get_modes() return values Jani Nikula
2024-03-08 18:25 ` ✗ Fi.CI.SPARSE: warning for " Patchwork
2024-03-08 18:30 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-03-12 0:28 ` ✗ Fi.CI.SPARSE: warning for drm: fix .get_modes() return values (rev2) Patchwork
2024-03-12 0:45 ` ✗ Fi.CI.BAT: failure " Patchwork
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=f765ad88-d166-488c-a516-ccac462b6dbd@suse.de \
--to=tzimmermann@suse.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.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