From: Neil Armstrong <neil.armstrong@linaro.org>
To: Doug Anderson <dianders@chromium.org>
Cc: Jessica Zhang <quic_jesszhan@quicinc.com>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] drm/panel: add BOE tv101wum-ll2 panel driver
Date: Wed, 28 Aug 2024 16:59:10 +0200 [thread overview]
Message-ID: <35ab4327-4736-41e8-afaf-c2dea58f0406@linaro.org> (raw)
In-Reply-To: <CAD=FV=WqmdjrM3jgpGEX=DqrJLYySpgQ9w+zK0mR=os_5wA35g@mail.gmail.com>
On 28/08/2024 16:11, Doug Anderson wrote:
> Hi,
>
> On Wed, Aug 28, 2024 at 2:22 AM Neil Armstrong
> <neil.armstrong@linaro.org> wrote:
>>
>> +static int boe_tv101wum_ll2_off(struct boe_tv101wum_ll2 *ctx)
>> +{
>> + struct mipi_dsi_device *dsi = ctx->dsi;
>> + struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi };
>> +
>> + dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
>> +
>> + mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
>> +
>> + mipi_dsi_msleep(&dsi_ctx, 70);
>> +
>> + mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
>> +
>> + mipi_dsi_msleep(&dsi_ctx, 20);
>> +
>> + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x04, 0x5a);
>> + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x05, 0x5a);
>> +
>> + mipi_dsi_msleep(&dsi_ctx, 150);
>> +
>> + return dsi_ctx.accum_err;
>> +}
>
> optional nit: now that the single caller of this function isn't
> looking at the error code, you could make boe_tv101wum_ll2_off()
> return "void".
Indeed, I'll spin a v3 with this and you review and apply it
>
> In any case, this looks good.
>
> Reviewed-by: Douglas Anderson <dianders@chromium.org>
Thanks!
Neil
prev parent reply other threads:[~2024-08-28 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 9:22 [PATCH v2 0/2] drm/panel: add support for the BOE TV101WUM-LL2 DSI Display Panel Neil Armstrong
2024-08-28 9:22 ` [PATCH v2 1/2] dt-bindings: display: panel: document " Neil Armstrong
2024-08-28 9:22 ` [PATCH v2 2/2] drm/panel: add BOE tv101wum-ll2 panel driver Neil Armstrong
2024-08-28 14:11 ` Doug Anderson
2024-08-28 14:59 ` Neil Armstrong [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=35ab4327-4736-41e8-afaf-c2dea58f0406@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=quic_jesszhan@quicinc.com \
--cc=robh@kernel.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
all inboxes | Powered by JetHome®