Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4113324ybd; Tue, 25 Jun 2019 14:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsvwlnMJtgb92AytdaoVNZmB3LPS0StKLgoDcCE0OVTBhVXloNk08qelNZkx7CmGcL/EMc X-Received: by 2002:a17:90a:f498:: with SMTP id bx24mr1033502pjb.91.1561497960766; Tue, 25 Jun 2019 14:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561497960; cv=none; d=google.com; s=arc-20160816; b=hI8dLA18Cll5jPXajBtlM7p3e920rV9CoSZx2VOJpAWo8QvuTUPefe22gGGvs3Grs4 n+zGqgJpJTFjdigkbhZ6BWPO3JsI92CgqzVl0GDDdHwpMzohiIh6yLsQ8zbbqprTpj+u Bosf3FTtBpscbZ/8qZxFRRAXT5yNvpqXuMDSgcGtfSpl068I9hmtbPGBBSbCRysBr0+w R2K3e5Gjtzp9i1sVByIfeUWLyHUEAG8VIgV8NrNjFAUxOmcbd39rPxbvdVDiSRvEm3Jc kosP6xBFrF8DIUrDX5l5Ko2+GLHq/UUBQWHEbt6Ry3UDMZxM/nefXWCg1iviftD6Qzah x/Gw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=CVrPxIc2mfSaQzg7iKc0+fy3cpBQCfgZDxAvc91zqgs=; b=wdWKK5IquVKIChcrIJ5ogZjBGzvcL9BY45aMWTtHn3bEXmP3n1BmmfzLZ+oZsJgKt+ 2wL2PEQDXh8NhFOKgTxe3QNu49m2mAiY4U/gqFsRz1daLeSBtICp5EwIS/iDVHo7N7mE LGbypgzcAUr4DZLcGnI+6IhIIHkucKBgKYKc1ypHxMRp4A6zFWOUTkr5Eo+NjyPTSJRL Y9q5iOMRddvAy/nDOIPQF67r9uHlY7fqNWdyyLM0I84YdnG4IDJR+nh7Wx4eDxGj3Lbf H3rMJMe0dW3P6tczq3VNv306QTxMytEhqT+LzJUnU2Ai6v0yzInLzguhvLweJwU25egy kyZw== 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 u19si14705286pgj.300.2019.06.25.14.25.45; Tue, 25 Jun 2019 14:26:00 -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 S1726408AbfFYVY7 (ORCPT + 99 others); Tue, 25 Jun 2019 17:24:59 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:48120 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfFYVY7 (ORCPT ); Tue, 25 Jun 2019 17:24:59 -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 asavdk4.altibox.net (Postfix) with ESMTPS id D67C980335; Tue, 25 Jun 2019 23:24:55 +0200 (CEST) Date: Tue, 25 Jun 2019 23:24:54 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , "Paul E. McKenney" , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Purism Kernel Team Subject: Re: [PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant Message-ID: <20190625212454.GC20625@ravnborg.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=ze386MxoAAAA:8 a=7gkXJVJtAAAA:8 a=L8TcbOcJO7bzHK2hVygA:9 a=wPNLvfGTeEIA:10 a=iBZjaW-pnkserzjvUTHh:22 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 07:05:17PM +0200, Guido G?nther wrote: > 0xBF isn't in any ST7703 data sheet so mark it as unknown. This avoids > confusion on whether there is a missing command in that > dsi_generic_write_seq() call. > > Signed-off-by: Guido G?nther Reviewed-by: Sam Ravnborg > --- > drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > index 6dcb692c4701..b8a069055fbc 100644 > --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > @@ -33,6 +33,7 @@ > #define ST7703_CMD_SETEXTC 0xB9 > #define ST7703_CMD_SETMIPI 0xBA > #define ST7703_CMD_SETVDC 0xBC > +#define ST7703_CMD_UNKNOWN0 0xBF > #define ST7703_CMD_SETSCR 0xC0 > #define ST7703_CMD_SETPOWER 0xC1 > #define ST7703_CMD_SETPANEL 0xCC > @@ -94,7 +95,7 @@ static int jh057n_init_sequence(struct jh057n *ctx) > msleep(20); > > dsi_generic_write_seq(dsi, ST7703_CMD_SETVCOM, 0x3F, 0x3F); > - dsi_generic_write_seq(dsi, 0xBF, 0x02, 0x11, 0x00); > + dsi_generic_write_seq(dsi, ST7703_CMD_UNKNOWN0, 0x02, 0x11, 0x00); > dsi_generic_write_seq(dsi, ST7703_CMD_SETGIP1, > 0x82, 0x10, 0x06, 0x05, 0x9E, 0x0A, 0xA5, 0x12, > 0x31, 0x23, 0x37, 0x83, 0x04, 0xBC, 0x27, 0x38, > -- > 2.20.1