Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2660238lqb; Tue, 28 May 2024 06:55:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtPsgVjd7gXCAB6kAFZGb5bGbLdM4KGr6EGCungZyoFXsV7wFSd6DVVKd9izmM5OuxeiG9xXYOHgV+z5jrYh0k5gMWjDmjsJH8pE+apg== X-Google-Smtp-Source: AGHT+IEUMYklj5W4FzHDE6Pk412jJ4F5JANnlBl+Rp4rUeZWw3d1eShVPRTQB367cmaB81FWLD/U X-Received: by 2002:a05:6a21:3998:b0:1a7:186:f976 with SMTP id adf61e73a8af0-1b212e17106mr14483517637.40.1716904520259; Tue, 28 May 2024 06:55:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716904520; cv=pass; d=google.com; s=arc-20160816; b=BoqD7DGjvvHyIN1zBqI5TXinHWgKs7PBkhHoT5XkN5/hsuINnxSM4idsAQqJnRppts 9N1TlK+JnjFEEbO4rSRTyvT82+5xUpVAJ/5qP5oiWTDA1xLYoU9uAmIzT11Gio26Ay34 me+6oibztnObesWeUpESEAVlIkcO6xTrEMFmKI4Lzp9z9rRldTbV2sGfdxiO71Ca0GCD /cUtA1DNb1IYH8oxO2Z1r7GlaOGiL7Iy7zxy+xYtASdHahb95iLzOpb5d6jnd9r81kFS m7wwj9OQjl8CIaYK5bF6S13yxD/ya9mkA1iFi1U8wKUFaxiaM5nyxNOV2JgMpIBXo/A1 6tMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7FRvHhRIIGYDk4+qwxfvO9/uo5NTHqwlQyzNXACIsqE=; fh=tSiLE+7Gj66O6M1z+gV+kdHhufRLQnsLfSyl4CsSEmI=; b=Lh7DoMrmUhHLCMQKxNVF/DbmP34avQCx1SqzETyWoFuGv49CPuOOTUMpEOiZJoqrLF HAadYScyplTccesdDcBH+9coNFJyRr+pORQN0MsCSfn+3IlE0q5uqR6ZH/G/lMRjy1Te nokTK+RvmuQ+fr2Pxj4BWvE5SQWEyfkrv2VMNJHrz1H1qJ37iPCgFANIgsfFvIOtxzo2 r3xSdaKddlp+dwU7LCNAXV5eWH46M/FXH4mL7Qb00SFbE4LvASS/61QA1gaZd+a7b5kr +g7veuwfz9aOW28eAqVISENCTJUEs1P7z9IGQFQKne9yXPSmq2fj5J7btjbfX95ucvFy 8EDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tSQ0mrHG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822ae566e7si8299707a12.784.2024.05.28.06.55.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tSQ0mrHG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5C272283177 for ; Tue, 28 May 2024 13:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C55D316FF36; Tue, 28 May 2024 13:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tSQ0mrHG" Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E66F16FF28 for ; Tue, 28 May 2024 13:54:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716904459; cv=none; b=uzdg+U1WmT9z659pwUvruWSAUorL7zidh5YiLJa2d38D0ZgE4BTl3XlsLKVMMu+5Q0E59sC3j7Y+hYs96viKq/tRLfXgMWRWjx89T1VsYO1a5VqVXvGSwuakowIzL293rRgnTul5ct8kNMoqUJRUDoUmaq4m7BQMl3uxPDToJ4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716904459; c=relaxed/simple; bh=7FRvHhRIIGYDk4+qwxfvO9/uo5NTHqwlQyzNXACIsqE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KkK31Co5oEfRe2logJKoPLyldJtI07282EnZ6I10iycgUYT2I6CP5kO8x7R0CM9IlnDpqoh3rtSUBVjb9Nk1/KzfJUe0ZbVfgPEbd9PZ+KzcYinLGLG5kl9hs9y3s3IYKrpcQIevf1PwGRc631hS/7B5lRov/8ycVn2+t7ojnnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tSQ0mrHG; arc=none smtp.client-ip=209.85.219.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-df4eb08fd9eso852630276.2 for ; Tue, 28 May 2024 06:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716904456; x=1717509256; darn=vger.kernel.org; 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=7FRvHhRIIGYDk4+qwxfvO9/uo5NTHqwlQyzNXACIsqE=; b=tSQ0mrHG3+n3PGa7X9pcZE1Chu/Ou4kJD5PRZeuVs6X0UgWzGhjAKz12y4MXw9+B08 QpdwOLF04csZe9v+E/6RDvFZ3pFEHnNLPHykMSobr+H4Jc8N0qZuVuNMqA7cemTP7E/P Br7A5Q3p7PFXO+QdwqJs3tnZm8XLaFvdTuGZCpqwrfLfYuqi+ZlQxtMsb873oasKObTE Um9H50l7SA449CHzSMzd1Bm8MA6HBYGxHXLL6SYocnxsHjW/yjCkx1XQOQO2wiELJnMf /F+Js73JovAr7xSKVQ+N1cf1wa7OoZ7ij2x61L4Ty6hgGo7c6YGFH+Wp1QI5BM2Mm+z5 7JRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716904456; x=1717509256; 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=7FRvHhRIIGYDk4+qwxfvO9/uo5NTHqwlQyzNXACIsqE=; b=C24Ox27eWiaxQLqmFTGJnxX+C01MpxbSLFKOdDIYPCtzWOBD0/dMa0/Ul9wBBPOJz6 7jd2REid76CF5su/dbzS1xgb3ZmbJNaBlUxrzGnri3mJ4WnDPVOJlUZC+kQXyeY6k23C wdxGni05NHtjMAlGIMNpzXgF7RBBmtHujPdc84/weg4oCSrNCDTEcjnkhrUWX/oO5lpj p1KDpqrdw09ggHvxl3ZxO2cfFyqgmnzdlaDbpMfEImov8G7ixjG/MVVVaC6Tok85fUCr 9/rATG6GevuVrv5omD/r3L6nAP+eSx2nkcKBaIjUUzaFP9iVYgVxij6uj+YBpybQ9Co7 L7Sg== X-Forwarded-Encrypted: i=1; AJvYcCUS65XIG5usJ6jo9hqKbHq0tWzcOXCRvbf9x6/U/+krGigT+QBgU5tSUBAom5ZhgODO0kxUPSiH0Q909pcx6uVfPdy8wxBMLEK1fu0+ X-Gm-Message-State: AOJu0YzZZLFurTl9mqpUMQ+5cMHqnBYRRrB3SMLz2Xf0a0LJOAb3lGF8 NAkP7GeZrFMfJNK+1W1ofPGtRrMzqj8+HzQXE36O2MbwiC5JRUxY0Y17/y3Jxo7NLu8r5ZZlIuP ToDhjquu/tXM9TmWffXk45Qou9wx6ebG6kdeRqw== X-Received: by 2002:a25:a545:0:b0:deb:42d2:c299 with SMTP id 3f1490d57ef6-df7721ff9dbmr11796718276.55.1716904456264; Tue, 28 May 2024 06:54:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240527022036.31985-1-user@blabla> In-Reply-To: <20240527022036.31985-1-user@blabla> From: Linus Walleij Date: Tue, 28 May 2024 15:54:04 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: ralink: mt76x8: fix pinmux function To: liweihao Cc: arinc.unal@arinc9.com, sergio.paracuellos@gmail.com, sean.wang@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2024 at 4:21=E2=80=AFAM liweihao wr= ote: > From: Weihao Li > > The current version of the pinctrl driver has some issues: > > 1. Duplicated "gpio" pmx function > > The common code will add a "gpio" pmx functon to every pin group, so > it's not necessary to define a separate "gpio" pmx function in pin > groups. > > 2. Duplicated pmx function name > > There are some same function name in different pin groups, which will > cause some problems. For example, when we want to use PAD_GPIO0 as > refclk output function, the common clk framework code will search the > entire pin function lists, then return the first one matched, in this > case the matched function list only include the PAD_CO_CLKO pin group > because there are three "refclk" pin function, which is added by > refclk_grp, spi_cs1_grp and gpio_grp. > > To solve this problem, a simple way is just add a pingrp refix to > function name like mt7620 pinctrl driver does. > > 3. Useless "-" or "rsvd" functon > > It's really unnecessary to add a reserved pin mux function to the > function lists, because we never use it. > > Signed-off-by: Weihao Li The patch looks good to me and Sergio: patch applied so it gets some testing in linux-next. If Arinc has issues with it or something else occurs I can always drop it again. Yours, Linus Walleij