Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp639440ybj; Thu, 7 May 2020 04:17:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKGQ4tz2jR7tmhM4ixLnVJHsLJphLVbqh6cXeQNb7IHP5OsW82vhBp9A3q++0zswMdCl1AW X-Received: by 2002:a05:6402:3094:: with SMTP id de20mr11418112edb.158.1588850233771; Thu, 07 May 2020 04:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588850233; cv=none; d=google.com; s=arc-20160816; b=nFq+iiOAB9+xrW7bmbaKEs/SxRlSzJ4NdCrhqQv+QWGy80/IluWMiF5gvP9zzw8SzZ MN3QmR6H9wVpMyELLcaM8gnfcV/imYibxQdIT1Zwbelxfb7oliFrC0y9rXPujJ1PYb+1 9DmIlTpx4taA41gTitJA+8nHrfw2zfNOFKgZT/Qq+OUIvfrTlKvj2iJC8DMgQ9hfr4iy zD0l08FPtL+m8mTE3NYbt+52srLi9I8WnvkWeHnilEQjoJowHxUdrtc+lcVcltUkyLKC VWlBMw+tkeB/IXpyGay/ND8aeckYhXQCaL398fE6Kq0neNreOiTdqkBVmjIQjm8ooSd0 kRhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Dxcg5eNMonsX6RmmqmQZqoaDN9wEQ2znoWP4PXDnAJI=; b=UHSLtjQFH/kj4yO8Mz8Tn1AfUunHDsUjh6AO6JNUDZgCX5e9Cl5Awdd9ACtkXjA9s4 lJnTutm7Ow+zZuXcxVrI4tsFeHvySqbbeK0+spKKOQpf2V7mhAsTm2elX9j5JF1vW091 TkdAQW9CPk51dDmgJBJxKMlENsgoZgXHIvIGG6HRBubbkW7bAnjWzLBDoYokf2ejFKDr u3JRU0fuvPEAphwrKmUotLVQejUNVgtfPsvcwG5tqihumfUAOaZrL8zap3gigMfFaceG c+C7/A0g460tv2Om7hmG2xPFA9XyjM/91KfhgErHs3fyyQ5m/bUnmYpZsf/Ee2Mwk2qy b5xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U0ZIgjbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si3113270ejv.381.2020.05.07.04.16.49; Thu, 07 May 2020 04:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U0ZIgjbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbgEGLNP (ORCPT + 99 others); Thu, 7 May 2020 07:13:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgEGLNP (ORCPT ); Thu, 7 May 2020 07:13:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF74E208E4; Thu, 7 May 2020 11:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588849994; bh=JpJwu3HzMRZiNarifyoKzt5DSF15LyA9t4q0RBYx/+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U0ZIgjbxbrUQp22xHRVXhrRyXYovhO9OcSbJLRCt06RzSv/mH0Mi/xwKnQhuqUAE5 bq6FwoI59EsiNC3tKiUsGN+5q7sqMFLPCdtlFoH6z0/XtKE9yLiprcbT//sCoJDkbK emJbjo8/AvGo/ULzVUqsZa9FJLI8MDche1ilHUnM= Date: Thu, 7 May 2020 13:13:12 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: Naresh Kamboju , linux- stable , Sasha Levin , "David S. Miller" , Vince Bridgers , Florian Fainelli , Fugang Duan , Pantelis Antoniou , Vitaly Bordug , Claudiu Manoil , Li Yang , Thomas Petazzoni , Felix Fietkau , John Crispin , Matthias Brugger , Sergei Shtylyov , Lars Persson , Mugunthan V N , Grygorii Strashko , Rob Herring , Frank Rowand , Andrew Lunn , Vivien Didelot , Netdev , nios2-dev@lists.rocketboards.org, open list , linuxppc-dev@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkft-triage@lists.linaro.org Subject: Re: [PATCH net 11/16] net: ethernet: marvell: mvneta: fix fixed-link phydev leaks Message-ID: <20200507111312.GA1497799@kroah.com> References: <1480357509-28074-1-git-send-email-johan@kernel.org> <1480357509-28074-12-git-send-email-johan@kernel.org> <20200507064412.GL2042@localhost> <20200507064734.GA798308@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507064734.GA798308@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 08:47:34AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 07, 2020 at 08:44:12AM +0200, Johan Hovold wrote: > > On Thu, May 07, 2020 at 12:27:53AM +0530, Naresh Kamboju wrote: > > > On Tue, 29 Nov 2016 at 00:00, Johan Hovold wrote: > > > > > > > > Make sure to deregister and free any fixed-link PHY registered using > > > > of_phy_register_fixed_link() on probe errors and on driver unbind. > > > > > > > > Fixes: 83895bedeee6 ("net: mvneta: add support for fixed links") > > > > Signed-off-by: Johan Hovold > > > > --- > > > > drivers/net/ethernet/marvell/mvneta.c | 5 +++++ > > > > 1 file changed, 5 insertions(+) > > > > > > > > diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c > > > > index 0c0a45af950f..707bc4680b9b 100644 > > > > --- a/drivers/net/ethernet/marvell/mvneta.c > > > > +++ b/drivers/net/ethernet/marvell/mvneta.c > > > > @@ -4191,6 +4191,8 @@ static int mvneta_probe(struct platform_device *pdev) > > > > clk_disable_unprepare(pp->clk); > > > > err_put_phy_node: > > > > of_node_put(phy_node); > > > > + if (of_phy_is_fixed_link(dn)) > > > > + of_phy_deregister_fixed_link(dn); > > > > > > While building kernel Image for arm architecture on stable-rc 4.4 branch > > > the following build error found. > > > > > > drivers/net/ethernet/marvell/mvneta.c:3442:3: error: implicit > > > declaration of function 'of_phy_deregister_fixed_link'; did you mean > > > 'of_phy_register_fixed_link'? [-Werror=implicit-function-declaration] > > > | of_phy_deregister_fixed_link(dn); > > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > | of_phy_register_fixed_link > > > > > > ref: > > > https://gitlab.com/Linaro/lkft/kernel-runs/-/jobs/541374729 > > > > Greg, 3f65047c853a ("of_mdio: add helper to deregister fixed-link > > PHYs") needs to be backported as well for these. > > > > Original series can be found here: > > > > https://lkml.kernel.org/r/1480357509-28074-1-git-send-email-johan@kernel.org > > Ah, thanks for that, I thought I dropped all of the ones that caused > build errors, but missed the above one. I'll go take the whole series > instead. This should now all be fixed up, thanks. greg k-h