Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2842051ybz; Mon, 27 Apr 2020 05:39:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJudC+WWmz1lNx/OdtGiEVlvn9LSHuFLZ6HbqmvLfabo/+TzCBElZpamDEaECbSYXJD7VV1 X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr20472360ejb.6.1587991142751; Mon, 27 Apr 2020 05:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587991142; cv=none; d=google.com; s=arc-20160816; b=QRfFAwb7m3tiKZiMY3R15IdQkd73EHdXVAmuFp3D1rtmSROGdEK5C7kK/mA7yp2tt8 0/arEsfIf0d2KjYYcbSzJlQSUTKxl5I7fJGE7YP+gvmVHg+imUrF7wsxiAdHbaRN5d5n 9p1rkY86f+FdzrXisJgIO63f8VeHSoFr926uD3UbSHqqtdokJLmGpq+blvK7sB1gLvL7 yzNAV2xjBdUu+DHR0m3Wn3tgKfBq6U1w/8O12emLDnKwXWqudxaDs5ozegKwCyxQ/5fk l8JMVToRadZQ7cLHZQxHSqZwJkicOUsAmTSGXDYCParPnnmdY98AlV9Br1G19HARk3OR eFAQ== 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=PLUp+H7tLoE7SqL2B/5Sr5RyPMPq2y7xz4BTXAvd9zk=; b=e9eEv9EDKaLHs2oFBgn/mh1ozLPiiYVKsleVMCaZaPX9sLF64e+pU/XyZN6+rPe27A iJ2F4LfkOuaQYzhz/ZbtE3DHdWZs//Mp+e0uR5y9u4aTkEwNhZIvneHvkjSBdCRWQ+gw fs7aT/zqT2Dqrtei9kUGHDaV1xV7CynL8vpHQpKcQislK6fusUlrp4eDONEW30BFpmjX pnkhKLKE7OJwotW7InsPRc6JX0rbtok6mrD3bFHb19E/u4AP7UeROhXWn8fg9NoVfDdm F2ll4I/R26iNWaY5QqCpdi2eVq7NmExFnomdyP33Pr2KXx7Stkvj1Tp2oVMGBbXnpMkt gJ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mf1WP5Xn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si8926844edi.509.2020.04.27.05.38.38; Mon, 27 Apr 2020 05:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mf1WP5Xn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbgD0Mga (ORCPT + 99 others); Mon, 27 Apr 2020 08:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726651AbgD0Mga (ORCPT ); Mon, 27 Apr 2020 08:36:30 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70507C0610D5; Mon, 27 Apr 2020 05:36:29 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id t12so13319757edw.3; Mon, 27 Apr 2020 05:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PLUp+H7tLoE7SqL2B/5Sr5RyPMPq2y7xz4BTXAvd9zk=; b=Mf1WP5XnzaDH9wPHukRV8bbvRPNRmZ2+SC0Y3EZgsPhYhW+DN+4m+XsX6HAJMlmJFd 9wjS25y9Zb1+0Z7IxanewEwe1SvR1CymsXiS0Mvyy7I3Ymvn7ek3E7B6bVbN3Gni+Or4 vlleN1AxUg+T/IJGQ3MDxDoeeQqj6mhCk2Q+1WzBPAMItDnER+7Hv0oOQBpWUVyYUbKl YTKdKJ/tk7xyobHPvOf1TOkEVdTCvPggyXpDfakHgb1jrn722RJRqf2B+bx2gaQhJGS8 lLNnttJpyVU4XSwBqVvcDR7jUydDRzNvqiIUOrzcK+pEu4QoPT8/8y8FbjnLzq553q9v utPw== 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=PLUp+H7tLoE7SqL2B/5Sr5RyPMPq2y7xz4BTXAvd9zk=; b=fAsovNJaz/0u5XyIjPiozg0XxL0YJ0PgX6OnUbTg5d7USnGuWyZN2E2lYhEk7AjzFt c6EXIBeONx5GgaxeUIhmKzn4wgbC3Dg5dyYd2RMHoXbC9hoVPGbHEhiTSM9aTPIWWsKU 0bhI0ODW4E5KZGlHTiN0HaP+XTbsfGluo/7h/Uek/PZyhP+W3KKb0lbRK0K828DQ5mcW 0W28GcmF2e1+3u2jrBRqdj52OlAZ5F3+iDf+czJmLL5XglcvdI61WI+CpmApH+jEMCAk F9sA8RrKaB1CQjU/9Ody4vhtC4ckBZqZiCH+/18BhSTo7IFGahRMLYir8kKwDp5TcSty t27Q== X-Gm-Message-State: AGi0Pub/VKb4Kegyzu5NAdZS6SeHrF5fAE+Uvqlpyhs39tmq6XC3/SZn RjxiEjDd5Ekd29LJoLzB3/9+v3qeXztwZg== X-Received: by 2002:aa7:dd84:: with SMTP id g4mr14403690edv.257.1587990987953; Mon, 27 Apr 2020 05:36:27 -0700 (PDT) Received: from localhost (ipv6-80adf4751ff4da96.ost.clients.hamburg.freifunk.net. [2a03:2267:4:0:80ad:f475:1ff4:da96]) by smtp.gmail.com with ESMTPSA id z26sm2941505ejb.36.2020.04.27.05.36.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2020 05:36:27 -0700 (PDT) Date: Mon, 27 Apr 2020 14:36:25 +0200 From: Oliver Graute To: Dan Carpenter Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, Oliver Graute , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v1] staging: fbtft: fb_st7789v: Initialize the Display Message-ID: <20200427123625.GE18436@portage> References: <1586424337-26602-1-git-send-email-oliver.graute@gmail.com> <20200409102013.GP2001@kadam> <20200427083642.GD18436@portage> <20200427093306.GU2682@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200427093306.GU2682@kadam> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/04/20, Dan Carpenter wrote: > On Mon, Apr 27, 2020 at 10:36:42AM +0200, Oliver Graute wrote: > > On 09/04/20, Dan Carpenter wrote: > > > On Thu, Apr 09, 2020 at 11:25:32AM +0200, Oliver Graute wrote: > > > > From: Oliver Graute > > > > > > > > Set Gamma Values and Register Values for the HSD20_IPS > > > > > > > > Signed-off-by: Oliver Graute > > > > --- > > > > drivers/staging/fbtft/fb_st7789v.c | 12 ++++++------ > > > > 1 file changed, 6 insertions(+), 6 deletions(-) > > > > > > > > diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c > > > > index 84c5af2dc9a0..b0aa96b703a8 100644 > > > > --- a/drivers/staging/fbtft/fb_st7789v.c > > > > +++ b/drivers/staging/fbtft/fb_st7789v.c > > > > @@ -17,8 +17,8 @@ > > > > #define DRVNAME "fb_st7789v" > > > > > > > > #define DEFAULT_GAMMA \ > > > > - "70 2C 2E 15 10 09 48 33 53 0B 19 18 20 25\n" \ > > > > - "70 2C 2E 15 10 09 48 33 53 0B 19 18 20 25" > > > > + "D0 05 0A 09 08 05 2E 44 45 0F 17 16 2B 33\n" \ > > > > + "D0 05 0A 09 08 05 2E 43 45 0F 16 16 2B 33" > > > > > > How do you know this won't break someone else's setup? > > > > Should I declare an extra define for my values? > > > > +#define HSD20_IPS_GAMMA \ > > + "D0 05 0A 09 08 05 2E 44 45 0F 17 16 2B 33\n" \ > > + "D0 05 0A 09 08 05 2E 43 45 0F 16 16 2B 33" > > > > That's fine, but it can't be a compile time thing. Both types of > hardware have to be working/available at run time. ok, what is the proper way to handover the gamma values during run time? Best Regards, Oliver