From: Francesco Lavra <francescolavra.fl@gmail.com>
To: Heiko Stuebner <heiko@sntech.de>, dri-devel@lists.freedesktop.org
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
robin.murphy@arm.com, robh+dt@kernel.org,
linux-rockchip@lists.infradead.org, thierry.reding@gmail.com,
Heiko Stuebner <heiko.stuebner@theobroma-systems.com>,
sam@ravnborg.org, christoph.muellner@theobroma-systems.com
Subject: Re: [PATCH 3/3] drm/panel: add panel driver for Elida KD35T133 panels
Date: Tue, 25 Feb 2020 11:49:13 +0100 [thread overview]
Message-ID: <026a2176-cded-d6ea-7fab-d1425ab3dd5d@gmail.com> (raw)
In-Reply-To: <20200223150711.194482-3-heiko@sntech.de>
On 2/23/20 4:07 PM, Heiko Stuebner wrote:
> +static int kd35t133_unprepare(struct drm_panel *panel)
> +{
> + struct kd35t133 *ctx = panel_to_kd35t133(panel);
> + struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
> + int ret;
> +
> + if (!ctx->prepared)
> + return 0;
> +
> + ret = mipi_dsi_dcs_set_display_off(dsi);
> + if (ret < 0)
> + DRM_DEV_ERROR(ctx->dev, "failed to set display off: %d\n",
> + ret);
> +
> + mipi_dsi_dcs_enter_sleep_mode(dsi);
> + if (ret < 0) {
> + DRM_DEV_ERROR(ctx->dev, "failed to enter sleep mode: %d\n",
> + ret);
It looks like you forgot to assign the return value from
mipi_dsi_dcs_enter_sleep_mode() to ret.
> + return ret;
> + }
> +
> + regulator_disable(ctx->iovcc);
> + regulator_disable(ctx->vdd);
> +
> + ctx->prepared = false;
> +
> + return 0;
> +}
prev parent reply other threads:[~2020-02-25 10:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-23 15:07 [PATCH 1/3] dt-bindings: Add vendor prefix for Elida Heiko Stuebner
2020-02-23 15:07 ` [PATCH 2/3] dt-bindings: display: panel: Add binding document for Elida KD35T133 Heiko Stuebner
2020-02-23 15:07 ` [PATCH 3/3] drm/panel: add panel driver for Elida KD35T133 panels Heiko Stuebner
2020-02-24 15:06 ` Robin Murphy
2020-02-25 10:49 ` Francesco Lavra [this message]
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=026a2176-cded-d6ea-7fab-d1425ab3dd5d@gmail.com \
--to=francescolavra.fl@gmail.com \
--cc=christoph.muellner@theobroma-systems.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko.stuebner@theobroma-systems.com \
--cc=heiko@sntech.de \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.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;
as well as URLs for NNTP newsgroup(s).