From: Sean Paul <sean@poorly.run>
To: Jitao Shi <jitao.shi@mediatek.com>
Cc: Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
srv_heupstream@mediatek.com, stonea168@163.com,
cawa.cheng@mediatek.com, linux-mediatek@lists.infradead.org,
yingjoe.chen@mediatek.com, eddie.huang@mediatek.com
Subject: Re: [PATCH v6 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel
Date: Wed, 18 Sep 2019 11:35:15 -0400 [thread overview]
Message-ID: <20190918153515.GS218215@art_vandelay> (raw)
In-Reply-To: <20190918122422.17339-3-jitao.shi@mediatek.com>
On Wed, Sep 18, 2019 at 08:24:16PM +0800, Jitao Shi wrote:
> Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel.
>
> Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
> ---
> drivers/gpu/drm/panel/Kconfig | 9 +
> drivers/gpu/drm/panel/Makefile | 1 +
> .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 709 ++++++++++++++++++
> 3 files changed, 719 insertions(+)
> create mode 100644 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
>
/snip
> diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
> new file mode 100644
> index 000000000000..e27529b80d78
> --- /dev/null
> +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c
/snip
> +static int boe_panel_init(struct boe_panel *boe)
> +{
> + struct mipi_dsi_device *dsi = boe->dsi;
> + struct drm_panel *panel = &boe->base;
> + int err, i;
> +
> + if (boe->desc->init_cmds) {
> + const struct panel_init_cmd *init_cmds = boe->desc->init_cmds;
> +
> + for (i = 0; init_cmds[i].len != 0; i++) {
> + const struct panel_init_cmd *cmd = &init_cmds[i];
> +
> + switch (cmd->type) {
> + case DELAY_CMD:
> + msleep(cmd->data[0]);
> + err = 0;
> + break;
> +
> + case INIT_DCS_CMD:
> + err = mipi_dsi_dcs_write(dsi, cmd->data[0],
> + cmd->len <= 1 ? NULL :
> + &cmd->data[1],
> + cmd->len - 1);
> + break;
> + }
> +
> + if (err < 0) {
err possibly used uninitialized here.
> + dev_err(panel->dev,
> + "failed to write command %u\n", i);
> + return err;
> + }
> + }
> + }
> + return 0;
> +}
/snip
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Sean Paul, Software Engineer, Google / Chromium OS
next prev parent reply other threads:[~2019-09-18 15:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-18 12:24 [PATCH v6 0/8] add driver for "boe, tv101wum-nl6", "boe, tv101wum-n53", "auo, kd101n80-45na" and "auo, b101uan08.3" panels Jitao Shi
2019-09-18 12:24 ` [PATCH v6 1/8] dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings Jitao Shi
2019-09-18 12:24 ` [PATCH v6 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Jitao Shi
2019-09-18 15:35 ` Sean Paul [this message]
2019-09-18 12:24 ` [PATCH v6 3/8] dt-bindings: display: panel: add auo kd101n80-45na panel bindings Jitao Shi
2019-09-18 12:24 ` [PATCH v6 4/8] drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel Jitao Shi
2019-09-18 12:24 ` [PATCH v6 5/8] dt-bindings: display: panel: add boe tv101wum-n53 panel documentation Jitao Shi
2019-09-18 12:24 ` [PATCH v6 6/8] drm/panel: support for boe, tv101wum-n53 wuxga dsi video mode panel Jitao Shi
2019-09-18 12:24 ` [PATCH v6 7/8] dt-bindings: display: panel: add AUO auo,b101uan08.3 panel documentation Jitao Shi
2019-09-18 12:24 ` [PATCH v6 8/8] drm/panel: support for auo,b101uan08.3 wuxga dsi video mode panel Jitao Shi
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=20190918153515.GS218215@art_vandelay \
--to=sean@poorly.run \
--cc=airlied@linux.ie \
--cc=cawa.cheng@mediatek.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=eddie.huang@mediatek.com \
--cc=jitao.shi@mediatek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=sam@ravnborg.org \
--cc=srv_heupstream@mediatek.com \
--cc=stonea168@163.com \
--cc=yingjoe.chen@mediatek.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