Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4124967rwj; Tue, 20 Dec 2022 06:27:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWm6GoIIiOktel2IYWjhMxgZZ7uAWebPsK+/idQsenxGWNPPhax/mFZKh9QrGPCVpqFyuu X-Received: by 2002:a17:906:c0d3:b0:7fc:4242:fa1d with SMTP id bn19-20020a170906c0d300b007fc4242fa1dmr13145477ejb.54.1671546420394; Tue, 20 Dec 2022 06:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671546420; cv=none; d=google.com; s=arc-20160816; b=PoGTCNhZ8vQB4lqB+jBEoAcCxzJqKs+5AsZck/TXkPkJGboedYzeAUgb64unloifEl cXAryINrAZ1ws+UhV4PJAB3nILBGRGK7RMnzPgk6YTS3d2U+9iLRifZiLctKlHQCMiAA +37dskTktGpfIE/KrWkfXfbwE9wipwheBlOp2ef4rzi5KVOlErMyzu2LSsfssA3pDlpv ZaxMTwaIX0UtfCYPZAKR/IEIOBC4KXRb7BfEcI9N9TzMRquOI0Zr8bAAMaaX2PyRnaeT jmPov/uYrs1jYySEloKLQZmk0e/K5wIFgfSIFHDas3Cbukec8Q16oMeNX/ZUqwhui8Wf WBUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=wctzHXw4hzi5xWOvCM7frHnIIaMcuScnVNosRmRtmS8=; b=RsnXmiuwbyNxCu8k9HnjkUGjmTOP/8YE2g1TmXM9nUhpyvK3zQZIdAylC1LDi3wogt 89P54+GZ1PvxUoeO4dfWfvmMHZqLN0Lom32N3gNwpxW7fmOWA8TTx+Vetmps1GH9Cz11 vOQh+sQpP2zoYWweQhs5VrD4t9bdURA2qfm38iRbrVIo4I4dXxv8Ep2EeT54+sJkWUl2 vmpHkVdnUonFxY8iZeqcQVz4WJYyQg5uH9JvAjLpr68C7FHJHhl/Ke/WzcHTuwbPUM3F zw12UUzT/PmsQAsJAwWC/9ZD7U5O6rY5rfTDZG2nv4XkgbXX3R/vG25Nffc5QM5jbkH1 E9fQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a1709064fcd00b00780488c11bbsi12708251ejw.388.2022.12.20.06.26.43; Tue, 20 Dec 2022 06:27:00 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbiLTNc4 (ORCPT + 70 others); Tue, 20 Dec 2022 08:32:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbiLTNcy (ORCPT ); Tue, 20 Dec 2022 08:32:54 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C983DB859 for ; Tue, 20 Dec 2022 05:32:53 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8477C2F4; Tue, 20 Dec 2022 05:33:34 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC1233F703; Tue, 20 Dec 2022 05:32:52 -0800 (PST) Date: Tue, 20 Dec 2022 13:32:50 +0000 From: Andre Przywara To: Martin Kaiser Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lv.ruyi@zte.com.cn, cgel.zte@gmail.com Subject: Re: [PATCH 1/2] ARM: highbank: add missing of_node_put call Message-ID: <20221220133250.3b38a17d@donnerap.cambridge.arm.com> In-Reply-To: <20221218142647.394881-2-martin@kaiser.cx> References: <20221218142647.394881-1-martin@kaiser.cx> <20221218142647.394881-2-martin@kaiser.cx> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Sun, 18 Dec 2022 15:26:46 +0100 Martin Kaiser wrote: Hi Martin, > A node that is returned by of_find_compatible_node has its refcount > incremented. We have to call of_node_put when the node is no longer > needed. > > Add a missing of_node_put call in function highbank_init. Thanks for the patch. So Ruyi sent the exact same one earlier this year already: https://lore.kernel.org/linux-arm-kernel/20220408094817.2494756-1-lv.ruyi@zte.com.cn/ I asked Arnd and Olof to take it back then (see my reply), but this somehow got lost. I will try to push on both Ruyi's and your second patch again - but I guess only after the holidays. Cheers, Andre > Signed-off-by: Martin Kaiser > --- > arch/arm/mach-highbank/highbank.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c > index 5d4f977ac7d2..97ccb8c1b3cd 100644 > --- a/arch/arm/mach-highbank/highbank.c > +++ b/arch/arm/mach-highbank/highbank.c > @@ -141,6 +141,7 @@ static void __init highbank_init(void) > /* Map system registers */ > np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs"); > sregs_base = of_iomap(np, 0); > + of_node_put(np); > WARN_ON(!sregs_base); > > pm_power_off = highbank_power_off;