Received: by 2002:a05:622a:4ca:b0:41c:c224:f26f with SMTP id q10csp514501qtx; Thu, 16 Nov 2023 10:08:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+/9VpO3MPQ68TKG8Bpf4Nv6c2/J233L9k1ftoxKk0+3Jd/8NdZNVMz+5gxkWDpibFGf7O X-Received: by 2002:a17:902:ead4:b0:1cc:68c1:cab5 with SMTP id p20-20020a170902ead400b001cc68c1cab5mr9500553pld.14.1700158110789; Thu, 16 Nov 2023 10:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700158110; cv=none; d=google.com; s=arc-20160816; b=PKsUFDesa2OS7ZayaqIo/Nc0WwVA+0aTMOiVPoAURZQLZ6YwUncpE/ZP3enGKP2UZb D/UaJKZVrxgXJ9wtgV2vPnzL2AhcscZDkD5JN5+RqW5GBe/AdYGxalnD75v5YbM57UhY Ce70Y3wJIN01hyF41T1G5aHf8pcszlYBneIWW4djbPxRYBpSlwADCMTwgCQASrMZE0gQ G3a5JdWvid39b6dkKjXivY0nkXLmmGIZXrkpH4yrkRVtLPCVcjUQ2olSDk3XLlTA9HAy HMlkgnI4B1AIn7QMQLvu4HVPKC3AAXXF/tCO6CSCjl7raUl7MIX7sBAzBd0E3dZbf1Tg xeEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=abMypBf5ucI4kN1b2IUT7QxG30gkYzFxCp5z4V1rKYE=; fh=3Zv55Ewp3pb2z3n4lYcg3b7V9G+WJAfUlIwwYEoRBtU=; b=NkmXXjVA9LR3i2YhMni2GT2s/1Cxy4xWS/JJhQWomB0dkjohPn+u2VTQH0ZW01rWKd k+gDo0rVKWrFJzHBuS8S6yWZD5do/d6dDgO+T+i31t6C2PelOirdHm8UtjEuMpf2roK8 vju//vc0rSOGevWBA9Clr9Fm+Ly4M3pFURRQ7wa6RxFWkgeESuPWB5pBxVtIAWP8lehe 6+LRzIV6zbl5Z9rcWvM7nkRlo8Qg2PTLB8vr0/WE2vT/PRa0c8lbwoWYj1IZXkf93YrQ lZ8bigguwkAQB1dZio4Miw0muYSYTZh0Q/w2DFIjoD30OOUr8SPDS1XbOhdOMlsrraAM ktOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DptkUAYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z10-20020a170903018a00b001c5da8b630fsi12933186plg.421.2023.11.16.10.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DptkUAYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id ABD5581CDE33; Thu, 16 Nov 2023 10:08:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345435AbjKPSII (ORCPT + 99 others); Thu, 16 Nov 2023 13:08:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345421AbjKPSIH (ORCPT ); Thu, 16 Nov 2023 13:08:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCCF195 for ; Thu, 16 Nov 2023 10:08:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700158083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=abMypBf5ucI4kN1b2IUT7QxG30gkYzFxCp5z4V1rKYE=; b=DptkUAYX9+gBJwotIhbneBWTZmUUrwZCqOk0YwhjYrBPLBYir0f8BeUnJ2AvaEX0SAY+JB tzu+b8QlW7z0TYhFdWVH60jgcAo6ywsPAeHOqVnZ4LgVNUoZSjYplvlsemOnudUPH/ySNx 3YMQv7eud3OwNbrBEeZnBeoKUYMkRxY= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-283-gfzvP2BAPL-AeZgb0sH-VA-1; Thu, 16 Nov 2023 13:08:00 -0500 X-MC-Unique: gfzvP2BAPL-AeZgb0sH-VA-1 Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2c6ed315cc3so10312111fa.2 for ; Thu, 16 Nov 2023 10:08:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700158077; x=1700762877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=abMypBf5ucI4kN1b2IUT7QxG30gkYzFxCp5z4V1rKYE=; b=QJTfPq0+zw61imxxayzG+kFdu3pRKYwUyg1qvXJGWlLIuUCr8681x7OSzWyPG/iijQ mUDGfZAi99VdT0MZIE0bPQwJqpD3oF89lcmJAPvydVBcvj+hkPyk/T8/l4cl9L8vBCZl sLifro/FPB8TwuC3dNViTbo46EcKQa6n+zbzxtgE/5FiJcHLQZKe7BfSlanzHWdg4gnt w6zQbDHS8Zxbnx8oTXb2WQCzGHy+t0VoeI/o+46t4XrWsUioJHuKdshBa7CkJpXaLS8J dN20aAG/3jFOw9X9k2KT9ay8JvAgZHDTczSpVPLiFp3VM6SqTtkdyFG4dfvsZHEe9kLE 1/Dw== X-Gm-Message-State: AOJu0Ywvo8mDgLlIArsYumqn/mmlLknOXUc1ZOXgqEZlhoq2acqBAiaT DK8sM20bMomGN9O13QfHzq6LpaGcafum2G1tcHOf8Kudh2Vfg0qvKhhwKQQiDkWV6Co4nzAXlW+ O2hScNgh2NGlAjVmA2lWlYdmVsUmXcjh3qzjJlq3nq82QUFxiayiGG+qpG64X87GF46sPHP8wtS OMSrOM8C4= X-Received: by 2002:a2e:9b13:0:b0:2c5:2813:5534 with SMTP id u19-20020a2e9b13000000b002c528135534mr7628264lji.51.1700158077746; Thu, 16 Nov 2023 10:07:57 -0800 (PST) X-Received: by 2002:a2e:9b13:0:b0:2c5:2813:5534 with SMTP id u19-20020a2e9b13000000b002c528135534mr7628244lji.51.1700158077374; Thu, 16 Nov 2023 10:07:57 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q9-20020a05600c330900b0040a3f9862e3sm3216257wmp.1.2023.11.16.10.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:07:56 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Sahaj Sarup , Javier Martinez Canillas , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] drm/ssd130x: Change "solomon,page-offset" property default value Date: Thu, 16 Nov 2023 19:07:39 +0100 Message-ID: <20231116180743.2763021-3-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231116180743.2763021-1-javierm@redhat.com> References: <20231116180743.2763021-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 10:08:23 -0800 (PST) This is used to specify the page start address offset of the display RAM. The value is used as offset when setting the page start address with the SSD130X_SET_PAGE_RANGE command, and the driver currently sets its value to 1 if the property is not present in the Device Tree. But the datasheet mentions that the value on reset for the page start is a 0, so it makes more sense to also have 0 as the default value for the page offset if the property is not present. In fact, using a default value of 1 leads to the display not working when the emulated fbdev is attached to the framebuffer console. Reported-by: Sahaj Sarup Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c index bef293922b98..8944129a8e0b 100644 --- a/drivers/gpu/drm/solomon/ssd130x.c +++ b/drivers/gpu/drm/solomon/ssd130x.c @@ -1453,7 +1453,7 @@ static void ssd130x_parse_properties(struct ssd130x_device *ssd130x) ssd130x->height = ssd130x->device_info->default_height; if (device_property_read_u32(dev, "solomon,page-offset", &ssd130x->page_offset)) - ssd130x->page_offset = 1; + ssd130x->page_offset = 0; if (device_property_read_u32(dev, "solomon,col-offset", &ssd130x->col_offset)) ssd130x->col_offset = 0; -- 2.41.0