From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 462C8C3DA78 for ; Fri, 13 Jan 2023 21:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=79agPpycsnb/U6w2ferz+h1uaQ7XCg+2XvdVziZN/Ww=; b=QND8qJnEjqZXSu ojmff8P1BO2LgyEH7q+HFZ0PaGmMt+7CYSdnfyKLGo3d/ZTG0Lbiix/fg3DWlcUsdJFt6opjUmVJL 3jaWAJ+AJmivH5qWxFUZEyTdmYvmNgu0PNhOpgqi3/2Ht4btd4ScRhszBjCkWdwv9HCCk7jF4FYFx Hpw0eRPCLeGP2G0fDOQfQt7QOmpuoJmyb3a1iL3/3e67G0/8uApZ4/YtUkPa6dRgfUkCQHIKyVSql SlBo8O0VZrykEHjsqpMlfJ2HdZqwql8AsxQgpgl9eB9pnKft+g31BtD7aZp0uOLbWWPTx0xZuyNhL SYcRSvmzkkSBJpwlx6kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGRzP-004enG-6o; Fri, 13 Jan 2023 21:53:31 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGRzL-004emR-6u; Fri, 13 Jan 2023 21:53:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673646807; x=1705182807; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=G/VQved2ff+tefAVfi0iakcBPqZfQVrJ7htF8hbF9mk=; b=UQIslOiWngQpGpISdONIjEJieG4KolhPRHxjerchKEGpRELnHkc3qpH1 VyElJ9slYviv3yL8JBWCRVbSNORj2xC9XvIxRIEx1n5CaPY6lEgB/XWBG a6+Aexq4U2xfS/efcEunl6cQiv/9ElMPIbYgJkGnEc2b2XYYSdluT/gMq uVTPJ8qclppil8Tlt2b0/OcKWey99XJIi4w3aYbU6tbu8U5/ebCGUTddw 6z+IQhL6jXNP4Ap/MIOCEopvXXc443reQKPNm5QCeeQ/oPsNQ0E+Sm/J5 cEs2Pibc2hQKK5BMzYnEN/XALNVb4Kypk2cU2PSuie4hQKqZbSvCEIcDS g==; X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="324166140" X-IronPort-AV: E=Sophos;i="5.97,214,1669104000"; d="scan'208";a="324166140" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 13:53:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="987142579" X-IronPort-AV: E=Sophos;i="5.97,214,1669104000"; d="scan'208";a="987142579" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 13 Jan 2023 13:53:22 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5C84AE1; Fri, 13 Jan 2023 23:53:56 +0200 (EET) From: Andy Shevchenko To: Bartosz Golaszewski , Dmitry Torokhov , Andy Shevchenko , 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 , Stefan Wahren Subject: [PATCH v3 0/4] gpiolib: get rid of exessive ->of_gpio_ranges_fallback() Date: Fri, 13 Jan 2023 23:53:48 +0200 Message-Id: <20230113215352.44272-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230113_135327_310503_E2DF50C4 X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. 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(-) -- 2.39.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel