Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1357722rwb; Thu, 19 Jan 2023 09:33:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXvQU4HB/eFcg0WZJBtRqsocmYhX6cn0rlAdGB09DEoVu+l7bt6NMbYNKbQc8cImLTTwo5Os X-Received: by 2002:a62:388e:0:b0:58b:cacd:35f with SMTP id f136-20020a62388e000000b0058bcacd035fmr12160103pfa.32.1674149590501; Thu, 19 Jan 2023 09:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674149590; cv=none; d=google.com; s=arc-20160816; b=t8SovHq3f7aYGdoc3E/GIIhZ4i38L9oHlv3tTeFqzFBNO50COXFVfFyvw60mXP7p+x ZHtx1keeNxHINDGr3RLW/eFPDT1YDbRJjDA737PDPLJb3eGHgKu6AZ3qA8Vvh9hEaFqq 8gydZo9a9xZhv3m8WKf4UtDSttSXDTpvc0kUBGaOHURc9QUtNOI/3krlXIgmRhWu4+m9 qEm2vjzMXe14CljaE7SOfY5ZqXJtdpzR8CdkeJrZRBu3e7fvfRW4QXA6+XcjSAQgoNMm 449ozBzBTINy+h8nhTaFgm4XTZ3dL1ePEL51AexxrufzPq++yDp7l5Ho04MBxT4xIKa1 CYOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=AzsRkDm9SjGSDRHOYc1q3rivU0aSfW/C298VGh9QspY=; b=BILpGRb/yrYCOoMogHjCPx5kZ0f1D3IoLqJXio0SKHD13CA7lM0J+YfrJuqC19YNVK 5F1X2HwNlS6Zbgz9XLPTs3POg0WRzbCHY5QuTiQ83QqEymfILABfo8dBQAi+4+8eYDWE U7txHRWIuthsdCQ12AmJSObHIyFxg36iKvQ33ozNMjdTPL7Pp2Y1VfA2vJ8iIQ4Aekzf nAbV2BfylnXi1id5KcXogYbqrBh33aBmTO4+gOluBlYxewz3VE1S4CL7ZGL3P4ZAMcue 0b3um/WNg1m3HK/kWJmDo/wJNuhdGK8w7iyhv8L/0NT6DcpUL6ibwZETBCwhPOG17ev8 T8AQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x41-20020a056a0018a900b0058d8d935148si17466200pfh.253.2023.01.19.09.33.04; Thu, 19 Jan 2023 09:33:10 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjASR3D (ORCPT + 45 others); Thu, 19 Jan 2023 12:29:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbjASR27 (ORCPT ); Thu, 19 Jan 2023 12:28:59 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A13EE7E4A6; Thu, 19 Jan 2023 09:28:48 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mzyi6-1oXrRJ0Xt0-00x5OC; Thu, 19 Jan 2023 18:28:31 +0100 Message-ID: Date: Thu, 19 Jan 2023 18:28:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 0/4] gpiolib: get rid of exessive ->of_gpio_ranges_fallback() To: Andy Shevchenko , Bartosz Golaszewski , Dmitry Torokhov , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list References: <20230113215352.44272-1-andriy.shevchenko@linux.intel.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: <20230113215352.44272-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Z/9yRM+iSc0SiMv8AvZINVzfAQcaGFv+QRJ7oGfjFC54VAuylI3 SZ+qYsKsxV8vBPVklmO4e1rMYuo9nzLtQhBbfcyPxiTGNNLskPL/KZ+0SYCJPYzgZxt7m4k AmbL8bbXoSuf6KFDx1NtrDeLJHRh2jrGqXh0fDqkD4yTdwFkrjWH/vFMvLT/3Mq0qrAtSor ARoRFfmTZoHfPqrRp5NIQ== UI-OutboundReport: notjunk:1;M01:P0:YJCObP7Zmsg=;+MbDRnIRKM8+p3rT3vi2DFL1Bgf 0wt5aJSJ1ijrbN4WRR/lMzwLoMM+st/vv34oy7RQz9lPj3xZboy1H5uVuSthsvFP8xl5IlwyV DjbATypWLO8mb2Nbu7A1icqezGH0Dcyl1RMQ/Vmf6ESOn3Nz0tN8LqIA0jRhoi+b3AqxscjXm pm6dDJzUyQAllVZH6x3DgiJ8Xqqq32Fnv1kmw9kJmvegs7McGvsmUGdxScU48dtKKsS/feFwk 3W9GD5pCdArZq8R5+DMKV4l4Bsv0GQm0tBpQXT3LJfAYqZk4utKpw5l/yqTsxP24uTQiQ2VYX VU/e/n07+RHZ8cswk2xo9d/0K0mReEjkSf0YTFBUc7zunD8KripOQ1/D354LNSjQKNuu9AKvv PSLO4aHXTEr6gDDxHwjmO6oplpNMyN3eNtKKAAJYdGnDSF8bCsownj0qSBAIt5cwUwXky9tR1 fUeculjxGrCiqkxCwTBTQXH/LCAkqWXP03wChJrXUZGI/JYEmy+7RWNXokV70DwHbK9cQrCty xe/57X/C9/qISYHBghaddqf/Td5MB+vnwYmVeeRpOIyjOUBuk1eXYE89MPtCxQC+pjN4eW8Se Km3LnbdjDAhbbGBBYcxYsqK8qLaUwhXU+r7AGuezaKbtwuRAzPw2bkHo7xdDaYkaj6Hj++/Wm 2K8eJBKK45VvLdxKnN29b7x3xgJWEMx7xOFUYAgusQ== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Hi Andy, Am 13.01.23 um 22:53 schrieb Andy Shevchenko: > The ->of_gpio_ranges_fallback() repeats the idea that lies behind > ->add_pin_ranges(), while the latter covers more cases that the former > hook. Drop the former one for good. i successful tested booting of this series with multi_v7_defconfig on Raspberry Pi 4 (with and without gpio-ranges in DTB): Tested-by: Stefan Wahren > > Changelog v3: > - moved check of the property presense to GPIO library > - split out the refcount fix in a separate patch > - added cover letter > > Andy Shevchenko (4): > gpiolib: Check "gpio-ranges" before calling ->add_pin_ranges() > pinctrl: bcm2835: Remove of_node_put() in > bcm2835_of_gpio_ranges_fallback() > pinctrl: bcm2835: Switch to use ->add_pin_ranges() > Revert "gpiolib: of: Introduce hook for missing gpio-ranges" > > drivers/gpio/gpiolib-of.c | 5 ----- > drivers/gpio/gpiolib.c | 8 ++++++++ > drivers/pinctrl/bcm/pinctrl-bcm2835.c | 10 ++++------ > include/linux/gpio/driver.h | 12 ------------ > 4 files changed, 12 insertions(+), 23 deletions(-) >