From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Marek Vasut <marex@denx.de>
Cc: dri-devel@lists.freedesktop.org, robert.foss@linaro.org,
"Christoph Niedermaier" <cniedermaier@dh-electronics.com>,
"Daniel Vetter" <daniel.vetter@ffwll.ch>,
"Dmitry Osipenko" <digetx@gmail.com>,
"Noralf Trønnes" <noralf@tronnes.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
devicetree@vger.kernel.org
Subject: Re: [RFC][PATCH 3/3] drm/panel: lvds: Drop duplicate width-mm/height-mm check
Date: Fri, 1 Apr 2022 21:49:56 +0300 [thread overview]
Message-ID: <YkdJVMizZ5mvmPSn@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20220401163755.302548-3-marex@denx.de>
Hi Marek,
Thank you for the patch.
On Fri, Apr 01, 2022 at 06:37:55PM +0200, Marek Vasut wrote:
> The of_get_drm_panel_display_mode() now does check for
> presence of width-mm/height-mm DT properties, drop the
> duplicate check here.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: Dmitry Osipenko <digetx@gmail.com>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Noralf Trønnes <noralf@tronnes.org>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Robert Foss <robert.foss@linaro.org>
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: devicetree@vger.kernel.org
> To: dri-devel@lists.freedesktop.org
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
assuming patches 1/3 and 2/3 get accepted.
> ---
> drivers/gpu/drm/panel/panel-lvds.c | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c
> index eca067e78579..f11252fb00fe 100644
> --- a/drivers/gpu/drm/panel/panel-lvds.c
> +++ b/drivers/gpu/drm/panel/panel-lvds.c
> @@ -128,18 +128,6 @@ static int panel_lvds_parse_dt(struct panel_lvds *lvds)
> return ret;
> }
>
> - if (lvds->dmode.width_mm == 0) {
> - dev_err(lvds->dev, "%pOF: invalid or missing %s DT property\n",
> - np, "width-mm");
> - return -ENODEV;
> - }
> -
> - if (lvds->dmode.height_mm == 0) {
> - dev_err(lvds->dev, "%pOF: invalid or missing %s DT property\n",
> - np, "height-mm");
> - return -ENODEV;
> - }
> -
> of_property_read_string(np, "label", &lvds->label);
>
> ret = drm_of_lvds_get_data_mapping(np);
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2022-04-01 18:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 16:37 [RFC][PATCH 1/3] dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory Marek Vasut
2022-04-01 16:37 ` [RFC][PATCH 2/3] drm/modes: Make width-mm/height-mm mandatory in of_get_drm_panel_display_mode() Marek Vasut
2022-04-01 18:46 ` Laurent Pinchart
2022-04-01 20:36 ` Marek Vasut
2022-04-02 3:19 ` Laurent Pinchart
2022-04-02 4:28 ` Marek Vasut
2022-04-02 7:45 ` Noralf Trønnes
2022-04-02 16:39 ` Marek Vasut
2022-04-02 17:08 ` Noralf Trønnes
2022-04-02 17:55 ` Marek Vasut
2022-04-02 20:08 ` Noralf Trønnes
2022-04-04 16:01 ` Rob Herring
2022-04-04 19:23 ` Marek Vasut
2022-04-01 16:37 ` [RFC][PATCH 3/3] drm/panel: lvds: Drop duplicate width-mm/height-mm check Marek Vasut
2022-04-01 18:49 ` Laurent Pinchart [this message]
2022-04-01 18:36 ` [RFC][PATCH 1/3] dt-bindings: display: panel: mipi-dbi-spi: Make width-mm/height-mm mandatory Rob Herring
2022-04-01 18:45 ` Laurent Pinchart
2022-04-02 20:19 ` Marek Vasut
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=YkdJVMizZ5mvmPSn@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=cniedermaier@dh-electronics.com \
--cc=daniel.vetter@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=digetx@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=marex@denx.de \
--cc=noralf@tronnes.org \
--cc=robert.foss@linaro.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=tzimmermann@suse.de \
/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).