Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp177941rwb; Tue, 4 Oct 2022 02:23:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74f/lyJXP3y6EURiHDZ1gw4ODEN9C2M8O4myB5BiVtYE7XPxG+cqmF2syWMP8EM8NkOy70 X-Received: by 2002:a17:902:ce8f:b0:178:703f:68bb with SMTP id f15-20020a170902ce8f00b00178703f68bbmr26227653plg.7.1664875421449; Tue, 04 Oct 2022 02:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664875421; cv=none; d=google.com; s=arc-20160816; b=n+qqHhvwD7xme4JmytF4PELNNht9DG9xFSeXABQ/ihJUNttE7IHmBwUPtzWQAQabsd RHN7r+fU/7doJYs9uESI5TFpoJij1msSsflFtEUARBci8s/ryPBkUT0Iq5ZY/MuT2tpC cYx8AlYiSvjAhPmFu/cxnSTvfvjiGg7zq+EduB+22noAK4/jdwa1cc3zvLwjZY2URsK+ tRABY0ic1ZIIbV80ytwsL1YSY/KwLmp36jz9hOH/nOg10GpYdqvrzHyShgfl1Ms3thKh 5sk02BVo2uFyO9QMU7wiY5FqzRyVn6iLjzvPcQuYy3xbdNDkrGRjdO99ybLOPUsYQV/Z sbnw== 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=kawNVgdgBSHd0eDZf0GEPhYoTAGM50TKmYEVuPpOvXw=; b=XIM4uIK2rXd6m6ho2p5Do/OZf4kXb2IzYDXVMURV3hBz2m7HUrr+G+9MGAMgXjLfz2 6a61EYd8uHdxGq2Jp1PQHqe3FrjM5M+P4OkM9+bMPGDUcT1lZY+fsi+sghcnOEDwBlrw g4METsOzUaRTAIyp1xO7yevSs0aqBtUSiRNMa/cTQbla7WddknhzvcuVUsUWbDIN4zC3 4dcvhhVyjA4Ist6gOeY+TQp4wYdDKjdCPVnl55UIWlJ6lqjcrjV2P2dRwYGh6RGA2JQa M3xpks/+7Wkgk7Xhzv9cMRhXzTplAKGYCwG/ARWndCgJMPlWJe9L3LO+ct6RPZiuts36 XjpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pFedhuEm; 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 b12-20020a056a00114c00b00538186c29ccsi11680226pfm.100.2022.10.04.02.23.29; Tue, 04 Oct 2022 02:23: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=pFedhuEm; 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 S229758AbiJDJGo (ORCPT + 99 others); Tue, 4 Oct 2022 05:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiJDJGn (ORCPT ); Tue, 4 Oct 2022 05:06:43 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A5B2CC9E for ; Tue, 4 Oct 2022 02:06:42 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id z97so17926100ede.8 for ; Tue, 04 Oct 2022 02:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=kawNVgdgBSHd0eDZf0GEPhYoTAGM50TKmYEVuPpOvXw=; b=pFedhuEmDarcm6UGf1nBESSgNy2qes/pdzkxnRts4t/i1EH1gAok0LH2QLL/qU/GKu trrF6s+eKOaIBra71g1cYXySDOyofwuKEEWQZEH2VvbSko7NjTXd7EC98pgReJj1NbI+ dUpGl6yUgOVkD4G7mgWoPWRfyms0024ab8aWNcMppTlHWPyQvfwKY56jEXu1xTZyFkxI 2tKi3yzs/r/P1LA/ushJ6x4/RA95O5Y7lKm+ouVTil4/LPK5h0nNJew0IZ87DOUYX2/I qn88+BxBx7btTe9Z/EB3u1OvZ41VxUZ2ntGHBsrQTmqJV3EjHjLPz1g1Q/mmKlWUlRmS rhuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kawNVgdgBSHd0eDZf0GEPhYoTAGM50TKmYEVuPpOvXw=; b=jX8duKbzLrbWffnDctrnqeAYDDPS+JG1L6WbI9/h84btblM7wzabQsUSi/BDkSOiLs I+XqFTBLGEa5zOTfWSC3voy4cFz/KVg2iVG/iSPrOs6tI0OL1F1qmYM3jee/yvGIMxt+ E0zaFj+asaOFnz8siqS54SNduXe4XtFm7f7TO+g3QWXRAv2lGSb4pYfF8v8aKTi6VfF4 P6Ll5JeVAgYmFKypnSMLtbOBnOM4GCWUOsONIQ3vyr+Jgan7gyeilitwkpD8wnDL+blp 7rvCWhGXjijTQfl/YUGRM1lsQjCCbzwN9Z1C7A1NtmbEpklYc+sui9+Qv+b9jF7/B+WE 6VyQ== X-Gm-Message-State: ACrzQf2YJlcFA/bz18rIsqXylrF5t9YKjxLQewZJDKPr4kuQTHEfzRxx eaF5Llwh0VfDE8o0Bq9LMWp8SN8ICu9DNlslu2RODg== X-Received: by 2002:a05:6402:d0b:b0:458:a244:4e99 with SMTP id eb11-20020a0564020d0b00b00458a2444e99mr14584879edb.46.1664874400818; Tue, 04 Oct 2022 02:06:40 -0700 (PDT) MIME-Version: 1.0 References: <20220920103108.23074-1-jay.xu@rock-chips.com> <20220920103108.23074-12-jay.xu@rock-chips.com> In-Reply-To: From: Linus Walleij Date: Tue, 4 Oct 2022 11:06:29 +0200 Message-ID: Subject: Re: [PATCH 11/20] gpio/rockchip: add of_node for gpiochip To: Andy Shevchenko Cc: Jianqun Xu , heiko@sntech.de, brgl@bgdev.pl, robert.moore@intel.com, robh@kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, lenb@kernel.org, rafael@kernel.org Content-Type: text/plain; charset="UTF-8" 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_NONE, 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, Oct 4, 2022 at 10:30 AM Andy Shevchenko wrote: > On Tue, Oct 04, 2022 at 09:14:38AM +0200, Linus Walleij wrote: > > On Tue, Sep 20, 2022 at 12:31 PM Jianqun Xu wrote: > > > The Rockchip GPIO driver will probe before pinctrl and has no parent dt > > > node, lack of the of_node will cause the driver probe failure. > > > > > > Signed-off-by: Jianqun Xu > > > > > +#ifdef CONFIG_OF_GPIO > > > + gc->of_node = of_node_get(bank->dev->of_node); > > > +#endif > > > > Any introduction of of_node_get() needs to be balanced with a > > corresponding of_node_put(). > > No, this code should not have been existed in the first place. We don't allow > anymore any of of_node usage in the GPIO drivers. There is an fwnode and parent > and logic to retrieve fwnode from parent in the GPIO library for the most of > the cases. Hm yeah given that the series want to introduce ACPI as well it makes a lot of sense. Yours, Linus Walleij