Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp374801rdb; Fri, 17 Nov 2023 00:59:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy4bZY0Ki8VbwdFVi2gZSsbm5awqMqB92Q+DPNgzZUsq1Rl+89nVOlCfToozT+UVxcFliP X-Received: by 2002:a05:6808:1395:b0:3a8:43d5:878b with SMTP id c21-20020a056808139500b003a843d5878bmr23014073oiw.2.1700211585652; Fri, 17 Nov 2023 00:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700211585; cv=none; d=google.com; s=arc-20160816; b=mb0b66lOuKjYMwIhkkliJcqIj27kBYGSFhFZnGBbWTo5GqXq+4mYhAIGJNlG04E8OQ 0Dq9bySlgQkXADkVPxPw+FCOX1D69hdlLQElABxu6GIwZ9CQpd9O5lYT5ZaEsP9AvS3x 3w+qR2aBjraat9PgQs/gz2seh1xaF36qsnUF+8vSn1KaM+7siaJBhMClMFHODWgGRH43 csqSijPq0u1yXVGCr8u9dMVIRCcLBO2VyXvCcoxnE10aACMQCMq2qixKg+UDNWHZR6qs kkmlrTb7KX8sbhloSpTgG2Dq0S1Mq8cjscVhgg4xeOOBW+QCPfiEEDLF9cZwjempfxL5 SNcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=+Byhpwk2/A3BTTrDnw3Tvan6MgRg9rKnyNsb/HuoIkE=; fh=eXfS/Q34fy1YyBbG/9W5/WUoLm1ixU6GGBZCa71URXw=; b=QINp/SDbeSNarQ2Kr3yUxN7wjiHc2XaJRXZ4+0PY77NgfVwjccLunOBfbTXQKccLrs MigLbe9tcWLgwX1ApmwiG99DSrgodSHCRCNDDu9htPJdTe+6gpVzpl+lAq5A1RC9OqgO 4sBOI5UT+hG9YRVb0bQlEUSOfdC4CHOnXRIUKNs6aftg/1rI2Yed1cxYobx7AQ7vqqob +J8XYh0RsOpIb9VGFQaFkqe+Qt0zUI5bfqJrTkvrOwUxB9a0Hng+kPC6h8Jyl4i67w4Q 6bJqCFsbDLaLXrR2Pn0kmFZfg4Hs7lugNukdwYf/NqAroKb9ZFbU3htKAF1Cmeh0IO2I 4wCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PggCT6JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x25-20020a631719000000b005bdbd1fe067si1498715pgl.141.2023.11.17.00.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 00:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PggCT6JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 852A4827033B; Fri, 17 Nov 2023 00:59:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345731AbjKQI7T (ORCPT + 99 others); Fri, 17 Nov 2023 03:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231407AbjKQI7R (ORCPT ); Fri, 17 Nov 2023 03:59:17 -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 385711A5 for ; Fri, 17 Nov 2023 00:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700211553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+Byhpwk2/A3BTTrDnw3Tvan6MgRg9rKnyNsb/HuoIkE=; b=PggCT6JKfBYVo0jxO3s2KkLxUMtN0/QLQ1Z/AJ2jr5zbxB5+UW501fvsuwyhyQI4iIKNjM oJqbfDHqnYqQHBilX/4B+ZQnS54TN/waB7Cpyian0sV5IY+Tb7JVQp5uGG4l6TlzOhi4ye Q4my8RqNo0rG41PpsF+gDt1cPwq49Yo= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-539-3z_pOCZuMg6R-xdbXNJgyw-1; Fri, 17 Nov 2023 03:59:10 -0500 X-MC-Unique: 3z_pOCZuMg6R-xdbXNJgyw-1 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-50985abb593so2034649e87.3 for ; Fri, 17 Nov 2023 00:59:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700211549; x=1700816349; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+Byhpwk2/A3BTTrDnw3Tvan6MgRg9rKnyNsb/HuoIkE=; b=XwecglbsIsrDiLJk/+06iIefTIpqkJcFKOH7ZDxNfb7RaOHW94vJC5sLE/oQlfkDdp d32uBcsQx5T0SXnR/EsygIiWbGP0fuy2bA8VzP8IL2Nwii+E4a/8lqopAAS4zqrEz6HZ Qic2PRQAWvOYNmp9eB3KLTk9mB4tMO/Tis6dvqNGMdR1yp0x2nBOJaObglzga0NT+5bY 6K+mlWgdkGSAk70FyGxscwaVxaCMbsYDpfTSDSkWQcZ7JpW0g//s9nAgbd0udzL5byXF 0S5KxY+iQ6oseeu8+FlJcFVWL1uUiIhxl2cgdnyDEfw+rRXMU2/4//LPsEn9KhGiSXB+ awFg== X-Gm-Message-State: AOJu0Ywv6uk0M5cJcuIj4Mo99pCm2OVwsLaSGJ0qXcfURJODPCWhmScC A5ambPJbh9/GJaOVsdJNPxkRUU33Ql/jO8g0APalkABzW5QC3hiAMh69IRn/246/m69Fy/Y9IJi /H1mdvJgvphOnHZ6YrJnkbzmH X-Received: by 2002:a19:6750:0:b0:504:4165:54ab with SMTP id e16-20020a196750000000b00504416554abmr12509658lfj.56.1700211549350; Fri, 17 Nov 2023 00:59:09 -0800 (PST) X-Received: by 2002:a19:6750:0:b0:504:4165:54ab with SMTP id e16-20020a196750000000b00504416554abmr12509649lfj.56.1700211548917; Fri, 17 Nov 2023 00:59:08 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id i3-20020a5d5583000000b0031f82743e25sm1648384wrv.67.2023.11.17.00.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 00:59:08 -0800 (PST) From: Javier Martinez Canillas To: Maxime Ripard Cc: linux-kernel@vger.kernel.org, Sahaj Sarup , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 3/3] drm/ssd130x: Change "solomon,page-offset" property default value In-Reply-To: References: <20231116180743.2763021-1-javierm@redhat.com> <20231116180743.2763021-3-javierm@redhat.com> Date: Fri, 17 Nov 2023 09:59:08 +0100 Message-ID: <87bkbs21sz.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 00:59:42 -0800 (PST) Maxime Ripard writes: Hello Maxime, > On Thu, Nov 16, 2023 at 07:07:39PM +0100, Javier Martinez Canillas wrote: >> 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. > > I can see the argument, but that's a DT ABI breaking change. > Yes, I know it's a DT ABI breaking change but what I'm trying to argue is that the DT binding schema isn't correct to start with. Even the RPi DTBO for this device (which I guess is used by most people with a SSD1306) has a property to explicitly set this to 0: ssd1306: oled@3c{ ... solomon,page-offset = <0>; ... }; https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/ssd1306-overlay.dts >> In fact, using a default value of 1 leads to the display not working when >> the emulated fbdev is attached to the framebuffer console. > > Could we fix that one instead? What is the issue about, exactly > This is the issue that Sahaj reported: https://twitter.com/sahajsarup/status/1725088484736766364 I can try to figure out how to make the fbcon to work with a page-offset=1 but didn't investigate since thought that 0 is a much better default. Just like the maximum resolution is the default if no width and height are set. > Maxime -- Best regards, Javier Martinez Canillas Core Platforms Red Hat