From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79002606A31A for ; Thu, 22 Oct 2026 18:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gwuz0ZMF DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=dovN6BL5FAn+zak2EvD6O7G0CJM/moSbGvOLpebY1ek=; b=gwuz0ZMFQb1tB3PBA5tHEO60RO jtItF3QeJKTCJqAj3MZs5KikaRlyLeW1+B1syX+7GeraueF2IbamNbsgLxBnxqGs3P66m8ciu+Vk4 Kq+EI6G21ZWj0JpXzaYC7pQc/CkWIoS1xDqoeuI5+5BcO59nwAIUd2tBXXR59YElI4r3nPFAcmYMf 6PTqyHn6Xj275iU9Q/Un9mps/i9u/kIGuNCvC77ANxz1p5K0aCNUZBM/8buObn2Li0Ca54ZZi4wkA TxA5Weh/1S4OF6pfMqznSHUbqb0+eCA9mQN4cKYTyTJRo/t0cugJxB8C391VTF/ByvWcosRAp1ZgN 5wyubzxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xJxvy-0000000El85-04ZM; Thu, 22 Oct 2026 18:54:38 +0000 Received: from elvis.franken.de ([193.175.24.41]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xJxvj-0000000El0a-3bL0 for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2026 18:54:27 +0000 Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1xJxva-00029Z-00; Thu, 22 Oct 2026 20:54:14 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 9ABACC09F7; Thu, 22 Oct 2026 20:51:04 +0200 (CEST) Date: Thu, 22 Oct 2026 20:51:04 +0200 From: Thomas Bogendoerfer To: Andy Shevchenko Cc: Bradford Love , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-media@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , Shuah Khan , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Mauro Carvalho Chehab Subject: Re: [PATCH v1 6/7] MIPS: BCM63XX: Open code gpio_request_one() Message-ID: References: <20260715185112.1323510-1-andriy.shevchenko@linux.intel.com> <20260715185112.1323510-7-andriy.shevchenko@linux.intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260715185112.1323510-7-andriy.shevchenko@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261022_115424_051172_8A659773 X-CRM114-Status: GOOD ( 20.02 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Jul 15, 2026 at 08:46:46PM +0200, Andy Shevchenko wrote: > Open code the gpio_request_one() call to be able to kill that API > in the follow changes. > > Signed-off-by: Andy Shevchenko > --- > arch/mips/bcm63xx/boards/board_bcm963xx.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c > index 57e916c06792..993341604439 100644 > --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c > +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c > @@ -903,8 +903,11 @@ int __init board_register_devices(void) > > platform_device_register(&bcm63xx_gpio_leds); > > - if (board.ephy_reset_gpio) > - gpio_request_one(board.ephy_reset_gpio, GPIOF_OUT_INIT_HIGH, "ephy-reset"); > + if (board.ephy_reset_gpio) { > + gpio_request(board.ephy_reset_gpio, "ephy-reset"); > + gpio_direction_output(board.ephy_reset_gpio, 1); > + gpio_free(board.ephy_reset_gpio); > + } > > return 0; > } > -- > 2.50.1 Acked-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]