Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp840407imw; Wed, 13 Jul 2022 08:54:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvu2CPu/pX4qEuPZa1aP7ABQX7/zDAXiY13Ovt82keHncL/BDTu117hSTGsh4hruuZRLDY X-Received: by 2002:a05:6402:795:b0:43a:6cc5:8886 with SMTP id d21-20020a056402079500b0043a6cc58886mr5897593edy.174.1657727689814; Wed, 13 Jul 2022 08:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657727689; cv=none; d=google.com; s=arc-20160816; b=r2cwFufBUMwAgOlexcHeAO5+uIze/1neKf1/Z1YxjbhS06yCQr2cu7+rMsAcaq1Rf8 TeR42USmn3L2h4uBENUBh2ImXCR/fYMFC0YT71J+6oc/K+Cuh5NUu9jUUhRkaeoD3HoU aQz0wfMB8Eo+PMC6USLwXj7Sv/LIleacGD1wP5C2nEIGNQMDb+1lRXOjoViXjqQDPAU7 A0+u7zgiEfc1nWld+caMWhwE97VFVRqgIcLjiAlt5P4YFTOfnZduVGDOtGYb4th/Za/h /0V4zW5/574WgOQP1+Wkd9Z8w4YfOMjV6loO1TAxSx/AiRxkrG5UfFqPLdawKIoW8vxX rCag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mkvXwyXw/bzhYex6cozMZMYvSmlbOw/F0RDr0JxPoCw=; b=k777JIDKzPbXbZC2/xZOIic4fR26cPOOzaDeo3aB7hqBu9YSih86bqUr1dxtp8gqE/ MWA9Q+sCNZmuFLepTMPUs042lfOv6sxwFwD8JczDlrv2aEEJVmBcrpqq+0s9pTPOXIGL noRhExztZKc+sEd6UtTNhl0ohbr9uE4300LItnF6ii9TpRXrGwCTBCkUhRDVRAQDJTNx AOOYRoGMqAQnNs+nH1RBoZ8ve880Ur++t0tpPCS6NW1czIQbXHbv/twx+3ZXX9RYT4g1 m5cVhd317RvraPguZzhq2WWq8wldqT6Afcky45lN2RLaZsLYFHVuw4vGsAW+0sh3GTeU l8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jQh6xeqT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh14-20020a1709076e8e00b0072aa141095asi881777ejc.0.2022.07.13.08.54.24; Wed, 13 Jul 2022 08:54:49 -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=@gmail.com header.s=20210112 header.b=jQh6xeqT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236545AbiGMOvR (ORCPT + 99 others); Wed, 13 Jul 2022 10:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234652AbiGMOvP (ORCPT ); Wed, 13 Jul 2022 10:51:15 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48DE82B26C; Wed, 13 Jul 2022 07:51:14 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id a39so13749750ljq.11; Wed, 13 Jul 2022 07:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mkvXwyXw/bzhYex6cozMZMYvSmlbOw/F0RDr0JxPoCw=; b=jQh6xeqT+Y6Ki5J436a0Th5YoFQnrEIqTMpRHU8Kce5a+/UIO2lYW5/lFa1+vKHif/ +vgiXsnypYDq5rqLWPkKY/H2s9pEAvvq+k2Nn9858TvGTxNKoSfgB/2+BmmKtyjlYAE/ elSX7mcb7soaQVXRiTDheQ+tqwHwksc7vU+uxBH4X4sn9qQ6MtzRMq92WcyTeStczoqx fSM5n34/SmQWOTOfxBRkJUMuoEc60KRSxHhSXA93RCJxJU32V6xwFYWBqo0XLCcUVYLu lycQEFzMu8MjsuhwNY45beIZaDWKEDh5ZisnCcGU7iakt09piKZmBvTjXdzJdxp3Dajq C18Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mkvXwyXw/bzhYex6cozMZMYvSmlbOw/F0RDr0JxPoCw=; b=E4CGYdv86QXrDXKC6LYjmndqSZfd0I3zCceagOdcsa6xtEX6tMyPpQI6UbMrWB83Ca ROhtUVqgZ8XULyGWxcwLH5Vbz+vYm8pLLlRF91soxGNX/HslXmCAgLJE842kjSraZ85t YpvVElc/tx4Nuw+HWEWsahew2QJ+Ct8KbM9raZ5Teyp1P3Rheb9TzImOcS5imKE4uoQD zO38YhsUCiAzLQKkWIrQ75iRa5hWvgDV9Rq/3qSMjsPCegqOiWqgP+0F+QZWvaSzx0B3 UrOTaRQPNF+PPAGbSRTE+20e822/NTwPDeL4rNYMzkAxowY0Fc8XdPC4TjhGRLx6yJ93 2JeA== X-Gm-Message-State: AJIora+zs05hX7+sU2A3MdFUg1i4GVd5/tCBBocT4RIcpPQ+uDP9WaDg xg34KMTY5zFyHa5LuKmvARZKHXsvFyYa8E4Cndk= X-Received: by 2002:a2e:9b0b:0:b0:25d:866b:5de7 with SMTP id u11-20020a2e9b0b000000b0025d866b5de7mr1941252lji.50.1657723872657; Wed, 13 Jul 2022 07:51:12 -0700 (PDT) MIME-Version: 1.0 References: <20220710102110.39748-1-tmaimon77@gmail.com> <20220710102110.39748-3-tmaimon77@gmail.com> <95d12b72-be9d-5503-c4ea-801303bb7776@linaro.org> In-Reply-To: From: Tomer Maimon Date: Wed, 13 Jul 2022 17:51:01 +0300 Message-ID: Subject: Re: [PATCH v1 2/2] pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver To: Krzysztof Kozlowski Cc: Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Linus Walleij , Rob Herring , Krzysztof Kozlowski , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , zhengbin13@huawei.com, OpenBMC Maillist , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , devicetree Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Wed, 13 Jul 2022 at 17:29, Krzysztof Kozlowski wrote: > > On 13/07/2022 15:35, Tomer Maimon wrote: > > >>> +static int npcm8xx_pinctrl_probe(struct platform_device *pdev) > >>> +{ > >>> + struct npcm8xx_pinctrl *pctrl; > >>> + int ret; > >>> + > >>> + pctrl = devm_kzalloc(&pdev->dev, sizeof(*pctrl), GFP_KERNEL); > >>> + if (!pctrl) > >>> + return -ENOMEM; > >>> + > >>> + pctrl->dev = &pdev->dev; > >>> + dev_set_drvdata(&pdev->dev, pctrl); > >>> + > >>> + pctrl->gcr_regmap = > >>> + syscon_regmap_lookup_by_compatible("nuvoton,npcm845-gcr"); > >> > >> No. Use property. By this patchset, I would expect that you learnt from > >> previous mistakes around this. Why repeating the same trouble second time? > > You suggest to use phandle property like nuvoton,sysgcr even that the > > NPCM8XX pin controller driver is used only NPCM8XX SoC, so the only > > GCR node in the NPCM8XX SoC is nuvoton,npcm845-gcr? > > Yes. The previous case (reset driver, AFAIR) was also about driver used > only in one SoC, wasn't it? Actually not, the NPCM reset driver serves NPCM7XX and NPCM8XX and probably other future BMC SoC's Still, you suggest using the phandle property in the driver even if the driver serves one SoC? > > Best regards, > Krzysztof Best regards, Tomer