Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp820073rwl; Thu, 10 Aug 2023 02:01:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfOPAaomdQqt3RG5Q0qBVAU74hmF7w7AC5RMaq5cww+EryvxN7Rnev1SMYky13vywwkq+v X-Received: by 2002:a17:903:124b:b0:1b8:c580:5fb9 with SMTP id u11-20020a170903124b00b001b8c5805fb9mr1598620plh.14.1691658063249; Thu, 10 Aug 2023 02:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658063; cv=none; d=google.com; s=arc-20160816; b=Y0Zvag2yzcBPUiM7btrTJe15UHg3HixbA7AsJUGc05Zxv0fXQsYw8UZgXZVdFo63x4 ZMv3Xa9uUGAtVUM6/Ma3R65Am9d26LlNJSi5V3/aX7P3c7I6xsOYsXzKJboBVeStN++V gnQmKe/44Vt3BlAmtQK/bIC6l+8xfJV/rLmGim8WgBZmJflTpqq2LU+b7rWUbz6eRKZr zehspPfWCBcJnQ4GRzZLxEh1RZ0RE0Xa1uFPv63oJYOci3czD5ZmevIgQuiThSoe0iUB 5BIipDlMmWJ2nCeBxEdrKIIlohT8bKWV9epvW9TMKhmg5Hj3qrZqhW+haWcrVnxvLa5h bjmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eUKzUe/YyFhhVGKQt0xdm9btYh3sRyVbNPpkYzJKMoI=; fh=D0neiX8BnK4Cs43ZFe7ysTkhUXKY1ScS3RUnEmHl3BQ=; b=iV2Dt8gXtkN0Xp6hvf92ir0rGq1YAI1z38sVl3jYEUnb9bbdxPlbf/MHCV8i72CQoh apIm5OSPGEGj5rMmMpnIKOixdDKpoEF7ek4oWY84PmVZtOnwPmh8A4D6w/iw/nwunrnk n+LlzwnLmOiBLxnqZuSfXwFXo+li4o47blQUGjfBstRD3yieaoE0bXHyEby1eHo0eJzZ kDe14XKXPrsz23RDRe5c++T11OhhtaedGGTWTxLq2eaT1+QDJNF1cK4N4yp2Mna9OKvA o2DXQvpirfb213Te47fa8pGeGYo+yGCvi/bkUbfmRDxe6GQFYcBBxtKNYLKwiT+lgXgp j/8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bRY2YoCo; 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 z10-20020a170903018a00b001b1a2c14a48si1149957plg.141.2023.08.10.02.00.50; Thu, 10 Aug 2023 02:01:03 -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=bRY2YoCo; 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 S234026AbjHJINQ (ORCPT + 99 others); Thu, 10 Aug 2023 04:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233947AbjHJINL (ORCPT ); Thu, 10 Aug 2023 04:13:11 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F2A10DA for ; Thu, 10 Aug 2023 01:13:11 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-d45caf42d73so595333276.2 for ; Thu, 10 Aug 2023 01:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691655190; x=1692259990; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eUKzUe/YyFhhVGKQt0xdm9btYh3sRyVbNPpkYzJKMoI=; b=bRY2YoCod9u62sIwPgfgb8aYWgek9jPHcXp/hxWWgqGtQZUuDjFZtEEVF5lxydclBF nJoKdEVwqq7ihD0E61B3Y9TFFo82SHbFLUT4OCD0iNB7PUqR3EX1LzumZmNdnfTz6hNe 4E6TgvY+LhWUJ0tl8jT6T9Z7R89Pqfc6QI1kvmWnkv1pNmk4YdmkeocN4GDvYqghdGXP C+umo72eBzANdsdWP6pDHj7RFbRRiQ7gEzJjIe9Zc+8vxuy9l3lrA4Wc6CBbGZXuE7jI BB960HaGQynFykhVXAkdQ7UjNnjgRPgw/I9CojZ+uOPW8khcdbtMvb9OKicDwYxRX88w 8i1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691655190; x=1692259990; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eUKzUe/YyFhhVGKQt0xdm9btYh3sRyVbNPpkYzJKMoI=; b=EmWAHi7UUBrEniZz8AVV23Yqh+A5ReWzASjg9CmCoH1l84B2kk6DD028duudGQXsrG k+IYbNeDvkk2u7iHScNwrBshFKW+Prhy4eduV2u6XlEm4CC8HRJSuCnsMLSbHKBCQfnq mgVJbOU95MOU/1idoN4FYa3RsBUBhex0TGCJROBFcCS7nDnMVLI0xh5o10XqyRmiIWrs UDSgzGWUmPTppj6pCjGNxiOqj/AHOKAul6lgg7myb8XNzEe5EBoF7cs97e/LbC0VqeTd vj1vndj+0oFVW9hssv23pWDk100qCl9NJtE8Mk4ZF+NNL6j5ZpEprSbRWGLNkYckjEcv g+fw== X-Gm-Message-State: AOJu0Ywql7c9y2AqC8PkQ/oXQey1M7w/f1rWx7jR1mXOTpdwSSJbjJwn /laZIg+UXLgFGIWPSAIyckvfra2+TRz74tadxSIK6Q== X-Received: by 2002:a25:ac89:0:b0:c5d:f2af:5a24 with SMTP id x9-20020a25ac89000000b00c5df2af5a24mr2106757ybi.14.1691655190358; Thu, 10 Aug 2023 01:13:10 -0700 (PDT) MIME-Version: 1.0 References: <20230620104349.834687-1-valentin.caron@foss.st.com> In-Reply-To: <20230620104349.834687-1-valentin.caron@foss.st.com> From: Linus Walleij Date: Thu, 10 Aug 2023 10:12:59 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: stm32: set default gpio line names using pin names To: Valentin Caron Cc: Alexandre Torgue , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED, 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, Jun 20, 2023 at 12:43=E2=80=AFPM Valentin Caron wrote: > Add stm32_pctrl_get_desc_pin_from_gpio function to find a stm32 pin > descriptor which is matching with a gpio. > Most of the time pin number is equal to pin index in array. So the first > part of the function is useful to speed up. > > And during gpio bank register, we set default gpio names with pin names. > > Signed-off-by: Valentin Caron Patch applied! Yours, Linus Walleij