Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3688711ybi; Fri, 5 Jul 2019 11:57:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHaL2cCiFX3eW2A/ut59SY+BTCFQv0p/2jCrTD8sTZrai+MFHIdTzj1atCEvmI1X0IGk+f X-Received: by 2002:a17:90a:2706:: with SMTP id o6mr7477041pje.62.1562353030598; Fri, 05 Jul 2019 11:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562353030; cv=none; d=google.com; s=arc-20160816; b=LVmuyt9IbRD5xeClP06/c34K8Kir1A1TDk/JP8DYVgBFrXFwUmItx9aldkyNNqMWcJ u7opS3iSDrW/8HW7mSIOG9LYbKzM+XVAPEcN2GMJy0I6xCtYxg7U6bE65oMCsg0ppcvi 6JTnZgk4kxKztvNI/qjWVrCP+uHaUmjUYDsHt0a4fUCCbDub68XeCwzh7kcMX8I0NfSm nJsZvCb11K9PQHWpBu5wkmTaSOvBvanyeIP2Y257cTJ9xGqarqbujkjDPHceGLt8h3+1 iitsw+pKzTX3a72GTv+61qeVtKthfZYLmdZjVurdo44aylKgEtqIl7ehCDQ2h/PcDNRg P9WA== 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; bh=PT1jSifZIGpkzgne/v/kvRjGPE8bZxCzHk1KlT/8W5g=; b=bb5Uz6Cr3f776RL4t7FCbKtfpwxebm46LoTkdl1RZPsSliiwukx9sYjeqQJ32p4+dU t2hthOFSqI1iR7W/VaXKfby/GPue0hF718TzCTLpuLzhh9CFvR9Fn/L8TkE7Cll1ZEgm y8ZehH5dPZrYDmnUUmbBT9MDN6jeaPMMefoxXbZi58ov8MuRu4LMsx2Tj2OzuW6qdGXq vcm4HZetXHOSZBPvIURWoK9pKgKYp1JyclJxMfFEBbRMvZUFIhnVwsR3pVGo0eJqCVBZ 1xfezPTbP5snF0Sl4elXd8TnGPmGekkuxH0xY321h5CbzjfA5yZh6P3YF1eRULnCvgd5 W+CQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d5si3503471pls.233.2019.07.05.11.56.55; Fri, 05 Jul 2019 11:57:10 -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; 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 S1727825AbfGESqw (ORCPT + 99 others); Fri, 5 Jul 2019 14:46:52 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:49576 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfGESqv (ORCPT ); Fri, 5 Jul 2019 14:46:51 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id C0E0720065; Fri, 5 Jul 2019 20:46:46 +0200 (CEST) Date: Fri, 5 Jul 2019 20:46:44 +0200 From: Sam Ravnborg To: Jeffrey Hugo Cc: thierry.reding@gmail.com, Dave Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Bjorn Andersson , "open list:DRM PANEL DRIVERS" , DTML , MSM , lkml Subject: Re: [PATCH 2/2] drm/panel: simple: Add support for Sharp LD-D5116Z01B panel Message-ID: <20190705184644.GA5044@ravnborg.org> References: <20190705165450.329-1-jeffrey.l.hugo@gmail.com> <20190705165755.515-1-jeffrey.l.hugo@gmail.com> <20190705172058.GA2788@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=pGLkceISAAAA:8 a=XCh60BrB9CTw4ms3EqwA:9 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jeffrey. On Fri, Jul 05, 2019 at 12:35:30PM -0600, Jeffrey Hugo wrote: > On Fri, Jul 5, 2019 at 11:21 AM Sam Ravnborg wrote: > > > > Hi Jeffrey. > > > > Patch looks good, but there is a few fields that are not initialized. > > Did you forget them, or are they not needed? > > Thanks for the review. Overlooked some of them. > > > > > On Fri, Jul 05, 2019 at 09:57:55AM -0700, Jeffrey Hugo wrote: > > > The Sharp LD-D5116Z01B is a 12.3" eDP panel with a 1920X1280 resolution. > > > > > > Signed-off-by: Jeffrey Hugo > > > --- > > > drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ > > > 1 file changed, 26 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > > > index 5a93c4edf1e4..e6f578667324 100644 > > > --- a/drivers/gpu/drm/panel/panel-simple.c > > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > > @@ -2354,6 +2354,29 @@ static const struct panel_desc samsung_ltn140at29_301 = { > > > }, > > > }; > > > > > > +static const struct drm_display_mode sharp_ld_d5116z01b_mode = { > > > + .clock = 168480, > > > + .hdisplay = 1920, > > > + .hsync_start = 1920 + 48, > > > + .hsync_end = 1920 + 48 + 32, > > > + .htotal = 1920 + 48 + 32 + 80, > > > + .vdisplay = 1280, > > > + .vsync_start = 1280 + 3, > > > + .vsync_end = 1280 + 3 + 10, > > > + .vtotal = 1280 + 3 + 10 + 57, > > > + .vrefresh = 60, > > > +}; > > No .flags? Is it not needed for an eDP panel? > > The flags don't appear to make sense per my understanding of eDP. > Therefore I intended .flags to be 0, which it implicitly is because > this is a static struct. Would you prefer I explicitly list .flags = > 0? I was not sure hence my Q. And do not set it to 0, as then someone will come and say this is default and delete it. Maybe mention it in the changelog. > > > > > > + > > > +static const struct panel_desc sharp_ld_d5116z01b = { > > > + .modes = &sharp_ld_d5116z01b_mode, > > > + .num_modes = 1, > > > + .bpc = 8, > > > + .size = { > > > + .width = 260, > > > + .height = 120, > > > + }, > > > +}; > > No .bus_format? > > Ah, yes. Looks like it should be MEDIA_BUS_FMT_RGB888_1X24 > Will fix. > > > No .bus_flags? > > eDP is differential signaling, so what I see generally doesn't apply, > but DRM_BUS_FLAG_DATA_MSB_TO_LSB does apply, so I'll add that. With your changes you can add my: Reviewed-by: Sam Ravnborg On both patches. Sam