Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3117445rwb; Mon, 7 Aug 2023 08:29:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJ/mpgkBxKu9e+NPMATgUYx+J/hNbmmU7siOKFJRCr0ozDhM2/zvLin8xwvQMFZql57dT/ X-Received: by 2002:a17:906:8462:b0:997:deb1:ff6a with SMTP id hx2-20020a170906846200b00997deb1ff6amr8071973ejc.22.1691422181135; Mon, 07 Aug 2023 08:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691422181; cv=none; d=google.com; s=arc-20160816; b=a0GJgiDg6UZb1Uj2TTpfbzwpneEbuZwaHPgeHgyRLDy+vfHHU6n2NqssbIYzMIDSNG aeiJQDE4Y8odq9idR+IzkOvaJucBmu2cSZfDcSyIn3RuFE5Kzda/XZotMiwQSHUhRm53 +w4ixRO208H1HUKzWxmg1kUKFfrND2UgszmadJqc+15FU5PThMYTDbStR5LFZFCwuwbD Liy+dyatp//+fgs/qSZrhzmaU9VN+fKXJPDQ3RJZ4atWjk5qHfieb+hj6pGbjltDAZag L2BzPua93yC/ZikC2KdxQx+YVx/Itchm+lreGvrdISPzYkt+ecCS5oIGMAP/usPOGtr1 afLw== 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=LCHsXc+lT27JE6Z6+8ylge5LujDr0uIa0UFtHeUGk2Y=; fh=XabGX/ztz3Q/NYRU7gNQKE5pkT4++ET/4VS+msxI0D8=; b=I4aG1usc0EchesQ4qbZJ/IczK/rQglQEZQ2Sskbu1I6gjo0VqKF5TdcJRSbLxjsEnd hvR4wdXmRvkWTYs4BhfYoMdqLqs1h2Spz0m5Q74I5DygGhKkNAhnCtlOkBXYcE0o1ayM 79h3zTre/F9K+O4C4SW5JFJ8JNNBcp1AEUKGD7x7o+x6km75wvV+Il8cRiTOjs0/9+U9 YVpeIo86F9pdwDyQV2PR81X9c1Lto73NptkVp4hgGRVYsa6O3Y+D7AN78dxF9QmiAoyp FgJbqccWornSr/nFG54fgX7cQJEPxhvL2CAfpsC7DoGE6QfR/VSA1C7sP2LSV8C6Wj7Y qWXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ut8sOt7l; 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 g3-20020a1709061c8300b00982762e2cc4si6234243ejh.775.2023.08.07.08.29.16; Mon, 07 Aug 2023 08:29:41 -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=Ut8sOt7l; 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 S232782AbjHGNF3 (ORCPT + 99 others); Mon, 7 Aug 2023 09:05:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231940AbjHGNF2 (ORCPT ); Mon, 7 Aug 2023 09:05:28 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246D610FD for ; Mon, 7 Aug 2023 06:05:27 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-cfcebc33d04so4588916276.2 for ; Mon, 07 Aug 2023 06:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691413526; x=1692018326; 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=LCHsXc+lT27JE6Z6+8ylge5LujDr0uIa0UFtHeUGk2Y=; b=Ut8sOt7lpFeoV7uC5nic5YMi0GUeC8HpWsn9X2ZvHUqogbJC59sug1OCXgBIO45szT zu/yDK65dLYqv6f+km1qpewpLLAyHgB83sO8QJplPf6Hb+zQxEgpYnezxw31ErxCfwYd DG1K/BD7UexEi2CLbm33TPIAEV+JP9uckCAnXOKFdFxQCTLDT9vDW0yo5WN6ssAjMwB6 jQausBUtY12YsJG/lvlFmGhmKUqnRUZYXZJAg6WdrWcdht+kmstTdnIijp5oZIEpsXDt nq9gS+ZIoUWmVgbHZ6Clm4PxrSxeiApl2AxIg5A46SblXoW3BcU9kQkBbE2yZj77FvnD FVPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691413526; x=1692018326; 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=LCHsXc+lT27JE6Z6+8ylge5LujDr0uIa0UFtHeUGk2Y=; b=LqMPMyQyUOXGyf0Hei5OH0+Ezq3jgEAsNn2268mR1YX6iKAvSEhzzmHKr1tHLEHew1 qxQ0HOW8y/kcAebr8ClTqIFhl8hdwN6hp0gfyBybgS/akxb49VuyuZAqAih1A8Ah/WPF z2BZLW64JL+r3sCNHdD+1O892m4zZlRIYHfM1ZFNLgxsJBCVTs6dOFYQqe8t4Bcube/Z su4E+TLSbFdVoPqhreX/urvuW+GvGZxCAEwPxf02OFfr8aY9dXSDuDZVpAomV21npfYe a+CIMe9g95wl5M/hUklAjStLzTgd3aXcTpNDdbCMxAUew78wD69RHJEsCYbKwALsWis5 EgWg== X-Gm-Message-State: AOJu0YzABzdqAqRO9jMhyK2ttnI0KwvI9oyR1fNN92T//p6hm7+AMZ6c uoWkiTlkUVgQiBDx9UOMmHGOPcnRfsT83JxZNq1fag== X-Received: by 2002:a5b:5cf:0:b0:c39:9e09:2c71 with SMTP id w15-20020a5b05cf000000b00c399e092c71mr8293260ybp.41.1691413526341; Mon, 07 Aug 2023 06:05:26 -0700 (PDT) MIME-Version: 1.0 References: <20230726150225.483464-1-herve.codina@bootlin.com> <20230726150225.483464-25-herve.codina@bootlin.com> In-Reply-To: <20230726150225.483464-25-herve.codina@bootlin.com> From: Linus Walleij Date: Mon, 7 Aug 2023 15:05:15 +0200 Message-ID: Subject: Re: [PATCH v2 24/28] pinctrl: Add support for the Lantic PEF2256 pinmux To: Herve Codina Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Qiang Zhao , Li Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Christophe Leroy , Randy Dunlap , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Thomas Petazzoni 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 Hi Herve, thanks for your patch! First: is this patch something we could merge separately? I don't see any dependency on the other patches. On Wed, Jul 26, 2023 at 5:04=E2=80=AFPM Herve Codina wrote: > The Lantiq PEF2256 is a framer and line interface component designed to > fulfill all required interfacing between an analog E1/T1/J1 line and the > digital PCM system highway/H.100 bus. > > This pinmux support handles the pin muxing part (pins RP(A..D) and pins > XP(A..D)) of the PEF2256. > > Signed-off-by: Herve Codina So it is a bridge chip? Please use that terminology since Linux DRM often talks about bridges. > +++ b/drivers/pinctrl/pinctrl-pef2256-regs.h (...) > +#include "linux/bitfield.h" Really? I don't think there is such a file there. Do you mean and does this even compile? > diff --git a/drivers/pinctrl/pinctrl-pef2256.c b/drivers/pinctrl/pinctrl-= pef2256.c (...) > +struct pef2256_pinctrl { > + struct device *dev; > + struct regmap *regmap; > + enum pef2256_version version; > + struct { > + struct pinctrl_desc pctrl_desc; > + const struct pef2256_function_desc *functions; > + unsigned int nfunctions; > + } pinctrl; Uh anonymous struct... can't you just define the struct separately with a name? Or fold it into struct pef2256_pinctrl without the additional struct? Thanks. Otherwise it looks neat! Yours, Linus Walleij