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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CD6BC433F5 for ; Mon, 31 Jan 2022 21:39:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3CD3481F6B; Mon, 31 Jan 2022 22:39:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="FQ25v3ri"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="hKpoEvzF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 44F2281DE9; Mon, 31 Jan 2022 22:39:37 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 536FF801B2 for ; Mon, 31 Jan 2022 22:39:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrew@aj.id.au Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6BAAD3202148; Mon, 31 Jan 2022 16:39:30 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute3.internal (MEProxy); Mon, 31 Jan 2022 16:39:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=KVVzNJlMWKVD+1J/t/0Mv6gzLMEV0nfyl2fRK/ VaTmE=; b=FQ25v3riPFefeSRTl8V6vETHSIpepGurQmAk/tib5x5sPc09bCIxBe QwFW2A2Ldk2StO7V73qPBCdOcbYt8RIfuNIwIcExhm6Gpiu7liTZUfdOrNv6yCSg euzL0wVECFN3v5tLCRI70T5aFkpud80zNepg9702LGVCKvAJ6WKcTmVAJVN809Ia QsgrdCyCfiVNBcKQqsDwNJhlN1zvNhcylbMwEgKUOeeqO6t4UIEqRCOT0mOg9ax9 S6N5GxPj9dOlfg1rhipKKADzxfm5IP/sJdm360U4khRTdpQGv2hbcfX4jLFxqC21 5hf6cmjdePWkfG/RJVh5+yF143VHmUsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KVVzNJlMWKVD+1J/t /0Mv6gzLMEV0nfyl2fRK/VaTmE=; b=hKpoEvzFLgrzBzxxkNLwIZM2p+PQa2WIi hVb8aH6wFYdAozMmMEBoLhwgdtoxekmo7Kbkl8YGUkuW1oK9PYjBi2Ff01tjOjHa 0CLqFTojatNstd7w03QYFPCe6RhI+tg9yDdE2Y+QuJfrPGT9wP7Jx3CuyeHuB06D cfryc5CtVpbp5E1WVVLlqBfb9F4cfqVTkg+r6vqR7CHN83F2nXeUZag+4AEt65gs LsbqyjfnUlRAJDKbzqRdnLc5xuj/g+sno+0IWlG0OEehKLQLkXYRMscL9uTfKm8C HQkRjJiSOQh9QJOYFK3ViQaZ9IqidLFefGnQZ19ZARuvHqy5eQdiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgedugdduheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhepleekgfffkeetjefhtdffgfevjeevvddvveegudduffduudekhffhkeev gfeitdffnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 290ACAC0E99; Mon, 31 Jan 2022 16:39:29 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4585-ga9d9773056-fm-20220113.001-ga9d97730 Mime-Version: 1.0 Message-Id: <80be25bd-dd64-47fe-b3d3-0f3fd4a4ca76@www.fastmail.com> In-Reply-To: References: <20220131032405.105204-1-andrew@aj.id.au> Date: Tue, 01 Feb 2022 08:09:08 +1030 From: "Andrew Jeffery" To: "Fabio Estevam" Cc: U-Boot-Denx , "Simon Glass" , "Joel Stanley" , openbmc@lists.ozlabs.org Subject: Re: [PATCH] gpio: Add gpio_request_by_line_name() Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Fabio, thanks for taking a look. On Tue, 1 Feb 2022, at 02:40, Fabio Estevam wrote: > On Mon, Jan 31, 2022 at 9:55 AM Andrew Jeffery wrote: >> >> Add support for the upstream gpio-line-names property already described >> in the common GPIO binding document[1]. The ability to search for a line >> name allows boards to lift the implementation of common GPIO behaviours >> away from specific line indexes on a GPIO controller. >> >> [1] https://github.com/devicetree-org/dt-schema/blob/3c35bfee83c2e38e2ae7af5f83eb89ca94a521e8/dtschema/schemas/gpio/gpio.yaml#L17 >> >> Signed-off-by: Andrew Jeffery > > Please also add a user for the newly introduced gpio_request_by_line_name(). > > Otherwise, this is just dead code. Indeed. I will be working to get some other pieces upstream so I can introduce a user of this API. I will resend the patch once I have that sorted. My hope was that I could get a head start on any other feedback people might have for the patch while I work to get the other pieces together. Cheers, Andrew