Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp601719ybd; Wed, 26 Jun 2019 03:38:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUC2D30uY4ZEFTnSOIsaEir+zsQ6psQAdERvRfrzvh3hxeCCq5PVERlMxctAvUv0mMtS2I X-Received: by 2002:a63:4f07:: with SMTP id d7mr2239574pgb.77.1561545516644; Wed, 26 Jun 2019 03:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561545516; cv=none; d=google.com; s=arc-20160816; b=0KjDqkbmj9tA/hqxdonPDuR0uMJv49QlPUbgXMTEsECxmmmw1Yokiq8na8lqMq6MQt OaKBICc1bu3QgdGla+RSppqkux/Xr4qXv9i97Ze5Ho5HQToXbqsjP838lXNeQ/lfIVil fpZtGlKWw/RJpjESdsEodG/lG+yVN9NvRKeohIAU7UjNO/oEG/ExahLt+1D1VgQHoWbS NFO8ycjz52Nec5R97uNP9yWgZCaJs1CFciaC3EWQpgE6GSre9d0E95pficvI5E14OCTJ LmeIdPLVnmULj0JKohjSZ6qYe+S2TgA7Xa6G6JO3xgSsn1Ut5Wal10SXUmMn3CXH+1x7 HshQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=HgSvyFU/SVaDdwo1+KK+Lo5wFD/OHTm/NdYG97rjZw8=; b=n+VcpgT27n7tAT7d66QpOvGpqx3w/Tw4Xc3nhL+qA9r+wD1j/u8zSqb3CmUC7IULp3 HoBsHB3eFxizJNjxhI93X7bP+589IZIPt41eYdXgKO38lyVkFGfPudTe3hN4diAe1iFP Laq9PDzEeTgIoNtaK75SMg7nDr+z9BbwF9/Ie42+r95BTJ7UF1OuUIt3rrsdqoCjksMo Ip5u6DIRhHVxc9wQpPUvMvClEJS3CLS6so16cNWG1umCxvdN62KAAqkIbNCz+JoIyNUg ztGOv0fu3svQzWlRC533zatyYAcut1Ez7d1A1nbpaIryl2hEiYNLD/BwKY5YOCbHVEw5 vaYA== 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 cb5si3028154plb.172.2019.06.26.03.38.20; Wed, 26 Jun 2019 03:38:36 -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 S1727183AbfFZKiB (ORCPT + 99 others); Wed, 26 Jun 2019 06:38:01 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:54542 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbfFZKh7 (ORCPT ); Wed, 26 Jun 2019 06:37:59 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 511D0FB08; Wed, 26 Jun 2019 12:37:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cb-WlhlyLnWr; Wed, 26 Jun 2019 12:37:55 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 8EC9F48EAC; Wed, 26 Jun 2019 12:37:51 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Thierry Reding , Sam Ravnborg , 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: [PATCH v2 2/4] drm/panel: jh057n00900: Don't use magic constant Date: Wed, 26 Jun 2019 12:37:49 +0200 Message-Id: <7f50fa6de2ae029111f158f8ea7fd69a0903eb97.1561542477.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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