Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp381723rwb; Wed, 28 Sep 2022 04:09:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65wup30TrSxW13O+Up/S0w80+8EzUubCtSZpkGyE5UeWxT4n7Lepi0X2l6fJjQ/n0NBZlG X-Received: by 2002:a63:4461:0:b0:43c:dbdb:90c4 with SMTP id t33-20020a634461000000b0043cdbdb90c4mr9477411pgk.340.1664363359559; Wed, 28 Sep 2022 04:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664363359; cv=none; d=google.com; s=arc-20160816; b=ABkwO4j50HcaThBtnbrZMbUbOYyqnv1u0FWEM7aHxtAf3PWhbMgz4y8GrmVyUWGri6 hkKsnUkeILA1UhOuBdqpkXhYaPFTlk+cdAkMkEmL4oCwD31KasX/3D5vXAssFLw6/pul VxZQYVQCvI9usSkF+HCgxSop8whhfuxo4Mi8ITVNGy6jgrwSMYBNe6nzyCajAlNi/B5V pbaI57SBD7htoImjSaABidsL/b0NsL0dfM/GjwP5ig5ruau86saLSxPENEbKi5/qzWOq f+Pft+0fBMkkOygb1ecUelL2iQvWvWuIdW039LwPSV8mSyTakG1OsORCXYKF3fbCTcNo glAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Vmh28mTnRu63ezVpuO/VYJZBKc7bNMAcTpkijNYdpyA=; b=bMlcN3twBpX9B6ESfeyLPx/ieQ3DvQIWrc2GS4rSU6SnVz+hia3mAgbJC7o7k5MX0v Rq++9qZZzE6ade3+m+4zRs9qoMb77hHSyiUWwqno192NYA8kmjMIHauiZm+32N/6woeU d3HIUli52HXKuNZoLRxwxwql7/X8k6kJqTR/qC6iDbulFqo/bDVb1Tuu1ryZUnP1Arhn 8EQBN5y6zyXX+4gRUFPnwXEDe0Fi2oHHRp/jGh+I3Pt4cjW/UKTcBuj/UFA5JcyKYBmq Yp7jgktUSbPRatMbrtQ66dOTMMohsnb7FB0L9FqV515k17dtlq9Jd4y30Ih6opprZZ/B Nwgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWsdi58e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bn19-20020a056a02031300b0043ca45f07d3si5443006pgb.363.2022.09.28.04.09.07; Wed, 28 Sep 2022 04:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWsdi58e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234162AbiI1LCp (ORCPT + 99 others); Wed, 28 Sep 2022 07:02:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233895AbiI1LBI (ORCPT ); Wed, 28 Sep 2022 07:01:08 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76688270C for ; Wed, 28 Sep 2022 04:00:56 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id n10so19147701wrw.12 for ; Wed, 28 Sep 2022 04:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=Vmh28mTnRu63ezVpuO/VYJZBKc7bNMAcTpkijNYdpyA=; b=eWsdi58eEi2d+xAwZU365etNANXaKeUbz6X79IbCm9H9HsBdqAZugvQDvVLOABzfB0 p3zLdfC7XmaOYbVCe9leZRYVvjlL4ArmzkzWiprCKuXkt9XKBVuXWNa4uAdZTyuq40EQ HfSpyxljjlafgudMxvIWMNsAWgOkm/q1fiIPhFmehyHQPsbeEqB6owfjKFJYOAwrPTOf K/iP4Z+9nlvV/3435cCK+JiuiTG/UX1dmN6QJ+l3+IVs8yxtftML/ncExEdmBpgZJlFO URJslWFayRQYLbYPjYUaGWde4zDVq45Rfppg2OCn6ATDWXhUJiQF1iJlmcyQgy1BPsDl lZAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=Vmh28mTnRu63ezVpuO/VYJZBKc7bNMAcTpkijNYdpyA=; b=qPrbrKfDYZv06xFPOsgT9mjjkPnTU8qmCqBFOoAXgBSNxoHJgsG0mLKkisL0uPTFG1 yolUSRK0QNNt7rAhgP+S5fQ9FVs0HP1kh1rGdh3UxkyNfayheuZP5wdDfWme3xpUDD8a JyPZ6cNRPDqikJwuUmRi49pOt+ZF4QnMMWm+BeMKx9sSKaWOSdF2htwsdJP7GkJ+FE/W VvBxprnyLYah+NHMs6LF4wj6+RIKW9b41107YOWpWcvm3Ykxmz/zGAx1AlAlqwe3zTiE spSrO0ghWCjSUwSnx88ltfCkFPAUV24Es08ZmPMTtl5Zgt4AB0zpSJko1x7JScrpsJFR tbrg== X-Gm-Message-State: ACrzQf3I6b9pR7Bzecp/BbMK87mvk3T1+otQjGLMeaDOU5pszUHqPokp ZFZzVasnQGxuC/6rHp7H4GTbHfJDLup8ZK+1 X-Received: by 2002:a5d:6808:0:b0:22a:c437:5b36 with SMTP id w8-20020a5d6808000000b0022ac4375b36mr20216420wru.459.1664362854849; Wed, 28 Sep 2022 04:00:54 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id x4-20020adfdcc4000000b0022b11a27e39sm4035884wrm.1.2022.09.28.04.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 04:00:54 -0700 (PDT) Date: Wed, 28 Sep 2022 12:00:51 +0100 From: Daniel Thompson To: Dmitry Torokhov Cc: Krzysztof Kozlowski , Rob Herring , Lee Jones , Jingoo Han , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [RFC/PATCH] backlight: hx8357: prepare to conversion to gpiod API Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2022 at 03:32:35PM -0700, Dmitry Torokhov wrote: > Properties describing GPIOs should be named as "-gpios" or > "-gpio", and that is what gpiod API expects, however the > driver uses non-standard "gpios-reset" name. Let's adjust this, and also > note that the reset line is active low as that is also important to > gpiod API. No objections to the goal but... > Signed-off-by: Dmitry Torokhov > --- > > Another option is to add another quirk into gpiolib-of.c, but we > may end up with a ton of them once we convert everything away from > of_get_named_gpio() to gpiod API, so I'd prefer not doing that. ... it is unusual to permit backwards incompatible changes to the DT bindings[1]: creating "flag days" where hardware stops functioning if you boot an new kernel with an old DT is a known annoyance to users. I usually favour quirks tables or similar[2] rather than break legacy DTs. Very occasionally I accept (believable) arguments that no legacy DTs actually exist but that can very difficult to verify. Overall I'd like to solicit views from both GPIO and DT maintainers before rejecting quirks tables as a way to help smooth these sort of changes (or links to ML archives if this has already been discussed). [1] For this particular driver the situation is muddied slightly because it looks like complex since it looks the bindings for himax,hx8357 and himax,hx8369 are undocumented (and badly named). [2] When the property is not parsed by library code mostly we handle legacy by consuming both new or old names in the parser code. > diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c > index 9b50bc96e00f..41332f48b2df 100644 > --- a/drivers/video/backlight/hx8357.c > +++ b/drivers/video/backlight/hx8357.c > @@ -601,7 +601,7 @@ static int hx8357_probe(struct spi_device *spi) > if (!match || !match->data) > return -EINVAL; > > - lcd->reset = of_get_named_gpio(spi->dev.of_node, "gpios-reset", 0); > + lcd->reset = of_get_named_gpio(spi->dev.of_node, "reset-gpios", 0); > if (!gpio_is_valid(lcd->reset)) { > dev_err(&spi->dev, "Missing dt property: gpios-reset\n"); > return -EINVAL; Daniel.