Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6883824ybe; Wed, 18 Sep 2019 10:35:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzamLgs5aP4RjvKqjdX63LFj/K0PjyjiUM4O/UWXwJZ5rtEopsmAtRuWdiZGBCIVwDzGGRm X-Received: by 2002:a17:906:490e:: with SMTP id b14mr8957419ejq.293.1568828104402; Wed, 18 Sep 2019 10:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568828104; cv=none; d=google.com; s=arc-20160816; b=Z+tEa3byLBbsrUXa9TD/RUw3ycNCjqV+k3E7QjDuaaCo+1DEGHcwEsHJ8byt2NQLV2 nBbDKSssoKvmzup7/8E6lqDdLYOnAmKJt4yQKklvAsO519tRTLOrZLOXMCLZa9BTm+qo RE6O5DZDb17HRWRTGT4w5SHTEjQV6mwOCh/pZjWO3wbOYgBs6hd4Vor5ogOmQ8l8x7zr ehkJrZ1OUkUqS21RmSyMhnylKa3ahIjhRrLakJj2FffI370kxs0CyjmyyBfSHFNkjzvc eJEzO/wzTAlHyrtDqzP7AM9e+s9YgXHNaiirwJvhdwT/s5Sfobxohw0RS7C8n72XyP91 Wptg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WXRR5zyqVQASQ4N9vA9Ov0ItwFdEJLRSuq1ARX/xesM=; b=dz1UUJ1FxfMZ24RmKCzF45kEUFNi0H9j8c3RLyJ3o6vgpOr/8nzdzr5lSFy8aS4Otr V6IP7iQvSkoQQ9hJlw10dQPkMHk+0TVbIjWXPlZe3f0oKvY1rEJyOojZb1dknSsJGlUA ewMU66X4+7R3GdEsXkiSSb9GNhY9n5uov4Orf+VpERfnkyvMiLeIjwpQaDHYE8ihvXvY 0zesEvRO8wRX+aLgV0a0jeG7gWhSEa1yl8Qf4Vrm64/2E5sdO2WlOvMEkXG2vkGsbPBp qKnwqoxJMndqHRsTnD9MTdYXuKV72qCOshITDFxwriBZWbUL+ta0fUMXadjgGvduZ3PY S1BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=dNLB2bp3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si2592919eja.318.2019.09.18.10.34.38; Wed, 18 Sep 2019 10:35:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=dNLB2bp3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730786AbfIRPfS (ORCPT + 99 others); Wed, 18 Sep 2019 11:35:18 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:33032 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730523AbfIRPfS (ORCPT ); Wed, 18 Sep 2019 11:35:18 -0400 Received: by mail-yw1-f68.google.com with SMTP id j128so112220ywf.0 for ; Wed, 18 Sep 2019 08:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WXRR5zyqVQASQ4N9vA9Ov0ItwFdEJLRSuq1ARX/xesM=; b=dNLB2bp3hfKDZc3abQIP7Oj8s66zGdtSp4haltezOEd6bKHKjGfSMozAqh6lGbdzjr Ij1QeFFZcQRSypfUAksMR/Lw23q0Q055c2yADGVxFSBn7g3+840ox0TbRwukGFMqe8GU jLSX6NFkEzBstjyRVOvShg73Ts1xvP9nGSrwSzgp81g8YRJ5+gdnWqTRS5AEZukRyB2a Tr342gQGPH2Gb6+Mz0CxM7drrTwr3haV5dqeSkF0U30vLD2nPCGVlhBbJdxNCBx+6R4d h0bEKIsWN0WErgB+hX61fDRGmDPfOfNAzKbBgKsSX6CQE3a4pc/R22V54rnEIApO3bAS dCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WXRR5zyqVQASQ4N9vA9Ov0ItwFdEJLRSuq1ARX/xesM=; b=bAHZhT+uN8Pgqf7T5XDOpa3lm2k6tkxN8HN+tpR18DfUhV8IyuaoFQmUxiOGLRt3Oy GqlmMgC3zmE4f4jIZ/kf6GG0o9xWxdKwROWnOQggbCL0+cfSHtg/nqcUVRxnT3yCItZj JUdpLpGlZ0Ylr2JaggaDTCtN7mmsRfS7o5FAF3VrQLtCqGgDURuI0IyQk4WfL7kbUTqv klU04isJyHDjKuqsunx2oMHq8U3gabAvKowhK4JCUIJdvIDaGyulTcYv6+xEEUXr/IwG QJ0t/KATSBENB3MX1+brDoUntnVPOA+5mEQQapepA3yDOTMMt3qWjwJ6lgfLna3MLxiI Gq8w== X-Gm-Message-State: APjAAAWdAnqU6FPYxtOL/1FVtIimkwCEoTDkJJuImSFcRuKPSJWQUiXa qGHnGnYysPT8aJJukRQnCrLAZg== X-Received: by 2002:a81:a347:: with SMTP id a68mr3744553ywh.427.1568820917136; Wed, 18 Sep 2019 08:35:17 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id i62sm1299104ywi.102.2019.09.18.08.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 08:35:16 -0700 (PDT) Date: Wed, 18 Sep 2019 11:35:15 -0400 From: Sean Paul To: Jitao Shi Cc: Sam Ravnborg , David Airlie , Daniel Vetter , 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 Message-ID: <20190918153515.GS218215@art_vandelay> References: <20190918122422.17339-1-jitao.shi@mediatek.com> <20190918122422.17339-3-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190918122422.17339-3-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Reviewed-by: Sam Ravnborg > --- > 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