Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp815677imw; Wed, 13 Jul 2022 08:26:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sq5BeoMF5zg3NquKmmmzuLiNQstQMiu8af1tj6aflbbvDopIfJFG3YMzKdVgopQ5Zw/t9R X-Received: by 2002:a17:902:7611:b0:16c:5c53:d932 with SMTP id k17-20020a170902761100b0016c5c53d932mr3673277pll.1.1657726018451; Wed, 13 Jul 2022 08:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657726018; cv=none; d=google.com; s=arc-20160816; b=p+EiCIviPb8AyLOTGMJxyhIRHJdTMKEdZonSbnvnhO1Hnl51dJ+H3iNRXQtCQyTqM/ mOwTHlGU+aZqPkxc2+SgnAs3Dgli9ReyAWt291lI3j4A0FBtnbPip3XOLWvZUybthocT a7ALnC0BRFNJQMqe8MGFUT9M8a3xDdvT1QAqmq8gCEWzjB3UEwhJDD5HyM3xL998RrDx 2DkXuWkCdMPCMO38kIUWJOGTljgU/OywgFvYPsyrl9h7zwI48A5Z1LN+HY6ttIgnphCd dEVUkaMfR6BmE1N0V7gPu2kxbOwl26xb5Q74OTTfOndEi+Ec88T0+AWqybU9UHZkcWUO Z3Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tkoow3fvqNobh0Z0Fm1iQlmk1WvKd33czLctPY8NUUk=; b=Wj/2UrtKnMI9KkCJ3M6hkNWZQkIHONXRR+0Zk1NeUGoVhCV1HzuJA+bi+mQEampao1 lwUrLtjyh06jXq+OoFy/kBzWvXrx88S+QT5DphFXbxa3esZyRWBbmyNNR0ht/4PivJur uSQxgLXBxZVcwHrHaugVr+08hYH1dEbIu4Y4der7mhHkQysY/pkHOdavwf69uQhG0syU iG9reImxb8UQ6GehbOPGDDC4HqHsTX/kLVpWZ/8+G7mspuyn6AHndkoWf43miHAL4sL8 6OjQqp6PZSoKFGoyIPEf2ZZxNGSSJCfWm7jnXUsJUTPngwaCy53FnT0Ns24v5czk9eio AdUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BtBdnKWQ; 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 u10-20020a056a00158a00b0051bd440b069si19441735pfk.14.2022.07.13.08.26.46; Wed, 13 Jul 2022 08:26:58 -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=BtBdnKWQ; 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 S236465AbiGMO3F (ORCPT + 99 others); Wed, 13 Jul 2022 10:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236425AbiGMO3D (ORCPT ); Wed, 13 Jul 2022 10:29:03 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EBEC33E17 for ; Wed, 13 Jul 2022 07:29:02 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id u15so2767220lji.10 for ; Wed, 13 Jul 2022 07:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=tkoow3fvqNobh0Z0Fm1iQlmk1WvKd33czLctPY8NUUk=; b=BtBdnKWQ8M+XWyv7RZn7ZYmpSJhSucnf+p6MM/o2UIAAjxfbJQwo5jChdZyQF/qieO L+jWLYPTyPQcPgEeo3WTE7NaRej5JwBqEyGykzbyRI+wg4SVUphX/f+RHPjtq90t31qm 5Ph8PCuWxltnqU6BaiIsEzmTQjpvM8RJfImviIsxpQNK69PPJSGKIRMd9d1ZTPLwIZ5s CgelLDIiVlBTYo71b+JEm5SEk8llgpa1SDpRL+sfzEcAnjH35LWrm2Di8YxRHlbRJYbS r5V8uxN2ffERsob0DJL/JWFBySFgvzhQ0Ou36h+6nRdmRNpDB9nxWiAX+7WLOzWFI8XX Rdag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=tkoow3fvqNobh0Z0Fm1iQlmk1WvKd33czLctPY8NUUk=; b=LAE4t99rE64TmWf/uVJhirAeROk4KFpWmKgxjYAKQ/AO0ounbFH5XOttC0vNGMByM/ 9ruB7OFjbs9RRP4U+p0HrqwpUH24L8c0qMai82yeQyXEUlAFXdYwYDy8Zov1fX3ZIHq6 LG5lmEVPsdKe4nrAPQztWfx4YM3HaPtJ4gAQMneqVcqm1LRIIWA8f18sPMvzGExxaNxj PmN5JkAC2f5yuj6/DwlM8cyxFFd3BTxGcpW7q72/IgvCCbkUaD6LTcPUIwJ2zjuVVqWK Hm5qJxgNPTvLwgM4M0NxtGLGMXIYgeXewvtqN0U0P7qitDPwvI6/cE8k/1Vn1VCxiZzj vtmA== X-Gm-Message-State: AJIora+waRMXnmY3T9G/yYO/3IP4GRvFSU0H7VGNHtdk/yjKNOw28EEd 2PTvfmy2DPC9f3sZiXn+y6I8Bw== X-Received: by 2002:a2e:557:0:b0:25d:466a:31b8 with SMTP id 84-20020a2e0557000000b0025d466a31b8mr1874204ljf.243.1657722540371; Wed, 13 Jul 2022 07:29:00 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id j13-20020a056512344d00b00489de206812sm1906840lfr.151.2022.07.13.07.28.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 07:28:59 -0700 (PDT) Message-ID: Date: Wed, 13 Jul 2022 16:28:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v1 2/2] pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver Content-Language: en-US To: Tomer Maimon 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 References: <20220710102110.39748-1-tmaimon77@gmail.com> <20220710102110.39748-3-tmaimon77@gmail.com> <95d12b72-be9d-5503-c4ea-801303bb7776@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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? Best regards, Krzysztof