Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp445177rwb; Tue, 4 Oct 2022 06:18:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MGuJR0uMZpLrpzV8YN2BoFEIKogvOWrx5f6CtfdRqpA77RXI+HCLVfGzmknLAAlkrb3yN X-Received: by 2002:a63:6cf:0:b0:44e:a4d2:f24c with SMTP id 198-20020a6306cf000000b0044ea4d2f24cmr8953072pgg.485.1664889480466; Tue, 04 Oct 2022 06:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889480; cv=none; d=google.com; s=arc-20160816; b=TLf5fTsaqQ0qgJnx4PxBu+pQCcOFCu9RKdWk96IDcuenWw4GheL7wZ1SUlP0lto2e+ o0sbkp0n0+sJNWQF4dxarjWi4JMXMr8nplQOFqPdio6PihvtDqp4XTeQlRiH2SHQ6oi1 cSlN8wiDHz+Cwg0WM6wmRMLOvigW2vJo3Dw5OTL6VQqB+CVU0Z0lp5wEEKSBo094NkFA TWyLOsmsG/R7XUo3eETsYGMm9Ka+oCdtoInXZBjZ2HYIgxbLaOBC6QARjCZl+c/Yg9qt tnquHGFf8N3Xqd2c/UaCmITDas4DbZ/Rl+19Plq2jcJ/F1aDgTdRUtQddH6JXS2AtzjP mWZQ== 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=PkPNtuib5iRHSYoXuvCITszxB1jeo5nPeYiHHZL01UU=; b=CcM/eIeQRf+c2Vqyu33pomsX49RBNKXzPzVDlIhuH/x2cG1R9FH7Ug6glP0KmgirJj htVcayx1bRJ9ZCKDZ/l0e0DBxco9VHPlVEEZ+DXpQBiEY71YtxdzW3y3dM4y1gIhhhvm PNNRTwgdinIzHC4tKALP10LchxJV80TQri1TNH27EUG88JB7vh5WpGWTPsKqOuPytwM1 FFxW0locQA31bNIIVFMVGHjnotohanqShlKFHxDZbLzClQqQDqSgv5PMLVlgm+ujpRI8 wXCG1ThuhroVUA2WGovPlRFpnxAz6b4Nr8EwVTkrZQTxzcYVQjDAhsIjGxiTM2Zoz+1A Dkbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aKbbnZoD; 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 q7-20020a17090311c700b00178b88d40ebsi15797678plh.51.2022.10.04.06.17.46; Tue, 04 Oct 2022 06:18:00 -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=aKbbnZoD; 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 S229975AbiJDM7E (ORCPT + 99 others); Tue, 4 Oct 2022 08:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiJDM5t (ORCPT ); Tue, 4 Oct 2022 08:57:49 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E3CEB865 for ; Tue, 4 Oct 2022 05:54:57 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id c11so21189485wrp.11 for ; Tue, 04 Oct 2022 05:54: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:message-id:reply-to; bh=PkPNtuib5iRHSYoXuvCITszxB1jeo5nPeYiHHZL01UU=; b=aKbbnZoDBY06Fjy3RSKQhfzAXP/Fpd7Z0NocPlMkBTEjqE9KysXAj0smHAg6k5bZ52 G3kcQkx0Y+fM9LPYRSAHWxnErO5LuGtgSVK5VU7qtIpqFjFr8isprkSzhfCKvlZNg5Uc bblamli2YxIlhbGYCKmlXDAzxtU1rW+o67ONYWDWlTadw7ufy/9sA5vbxKE5/l3KtwTE z2gYoyV1NmPHkKI13GaBFPLMSiD5exh43C6GJXFeIVNiDI/a1bE/3dHN4HF/N3uh3LPY CplV3F1T6nmpxOHlfxlj29KE5vlrZJQcjHRWqW7O8bdocUUXeHQeZbuxNPrGVVl6tSYg r5TQ== 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 :message-id:reply-to; bh=PkPNtuib5iRHSYoXuvCITszxB1jeo5nPeYiHHZL01UU=; b=HwQ8yyH47N6loqNc08vkuq2XV+l0WB631AqcqptjIjQmEDEDNsuTgPOz54CRz+GmCQ ZK1OYFwvDKgZ+1tq14k4CEA0+QtWUA41bDQKCfpq17Ilie7YaFdDh9c4Hh14JbYZukcd Ki+teNKEywL/LsTRPXc7ey4jU9kuyIgMo24C6oySbQ3X1nbZ6z05/R+eY1R43kYUul3D QUgWCEOHT+shqS4AKOr96LU3+l/ZwpnfIPkjf5F7Y0jaJqSwnwegHtZ1YSTBZkHc5/O3 2PkkeWZxTPTgDYlusIolCZPKMElQtb7oLg/PMQi/V2NR007ofTjrhK5bLC4+JxWjqJSn pNjg== X-Gm-Message-State: ACrzQf0z/c9fHNAJoUoupZetwp8CcF6rIpiGp72QurBatSmEjX9M37P+ M5oIlBk/xUM0lozc9rs8DaX+nQ== X-Received: by 2002:a5d:588f:0:b0:22b:5cc:e1d3 with SMTP id n15-20020a5d588f000000b0022b05cce1d3mr15148579wrf.142.1664888095272; Tue, 04 Oct 2022 05:54:55 -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 w10-20020a05600c474a00b003b4ac05a8a4sm25305803wmo.27.2022.10.04.05.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 05:54:54 -0700 (PDT) Date: Tue, 4 Oct 2022 13:54:51 +0100 From: Daniel Thompson To: Linus Walleij Cc: Dmitry Torokhov , Sascha Hauer , Krzysztof Kozlowski , Rob Herring , Lee Jones , Jingoo Han , Shawn Guo , Fabio Estevam , NXP Linux Team , 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, Oct 04, 2022 at 11:02:06AM +0200, Linus Walleij wrote: > On Wed, Sep 28, 2022 at 12:32 AM 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. > > > > Signed-off-by: Dmitry Torokhov > > I think the gods of Open Firmware will try to punish you for such > incompatible changes. But I have long since renounced them. > > > 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. > > We need to know if i.MX is shipping device trees stored in flash, > or if they bundle it with the kernel. This part is frequently found in add-on boards so it's not purely an i.MX-only question. > In the former case, you have to add quirks, in the latter case this > patch is fine. > > Sascha, what does the Freescale maintainer say? IMHO for not-in-the-soc devices like this the presence of in-kernel DTs isn't enough to make a decision. What is needed is a degree of due-diligence to show that there are no obvious out-of-kernel users. To be honest, I suspect the due-diligence checks will probably yield a green light for this one. Most of the tutorials for the popular HX8357 devices, show how to run python code in userspace that sends raw SPI commands. That sucks but at least it doesn't raise any concerns about bindings maintenance. Daniel.