Received: by 10.213.65.68 with SMTP id h4csp449984imn; Fri, 23 Mar 2018 08:04:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1VtZuLNR/Hc2u4skaJizeJQJjG27S6z0Djz3u3AEQZHUgIG4d06zz0QZuFHJlIHHNi+Qo X-Received: by 10.99.152.68 with SMTP id l4mr20870352pgo.75.1521817457772; Fri, 23 Mar 2018 08:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521817457; cv=none; d=google.com; s=arc-20160816; b=YEThKJv51GIkqNtUaiBOAjWuPt7F+mAzAI3VWifgmHHkujrhjze/kGE2wV2FJ8gU4I G/QYYlSyHNKsgMRmtLft3sr+u7Xd0+ocPvQVnVmswxph2iNUvqn0qRoSmfZ0JDJ388Wm Km1OjN+ttlTnOe6BZLIBfVnbNRo2ApJJptXaWUnemuJ604M2jjqADTtAzxF5r/8xoTEd XgDUhqizXXnEuYRDmZHVJ3tl1euRVF+sFcTwnNnKGdIBF8gIQW2dIzMeBVrlZNyCR+Eq K2zDuO1QruGXhEbv4mb3gzJaJTnERK50W/JEkNXShqSZKGlB5psoqZ7gv5Ba2ZHO2Ug2 Mi4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=uV8/q6uQW1tB7iFTYn9AAvp2WA8P7SrPSaZIV/i4fgw=; b=gyppQqLWhc+htFSkEKz+2PnXR4t7Z4t4Z9p2PE65RXSX127EzIwKPUNeCWFSZJQ2Lz sHJVBXm8WEOJlUbVZTin7/OYbX/et1K+8RhWtTj3R/HlQH4IPjKHCvHtljvGVP5nmJQY 6oMhq7ABro0glamMnphBxRsK15Zp0s51lKELJDe6yJ2JOFKH4jgAqxMRvoc8FmnPMkeo nUPBBuU/D+jjwcRLeOxjlR8ajtIHRvCW0BniGTp+nz1mKafuMxBiWq56+mdx9Ad+Bd+V YAoAfnzDq3aER0HuX56dK/tSeLttuXEn9x4FQiUarSqMnzBrnR5KLJBGPME4wajEeCZM o99g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si9250337pll.146.2018.03.23.08.03.29; Fri, 23 Mar 2018 08:04:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbeCWPB3 (ORCPT + 99 others); Fri, 23 Mar 2018 11:01:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34812 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751551AbeCWPB2 (ORCPT ); Fri, 23 Mar 2018 11:01:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 43D94E8E; Fri, 23 Mar 2018 15:01:28 +0000 (UTC) Date: Fri, 23 Mar 2018 16:01:26 +0100 From: Greg KH To: Ioana Radulescu Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/9] staging: fsl-dpaa2/eth: Move print message Message-ID: <20180323150126.GA12656@kroah.com> References: <20180323134413.1532-1-ruxandra.radulescu@nxp.com> <20180323134413.1532-3-ruxandra.radulescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323134413.1532-3-ruxandra.radulescu@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 08:44:06AM -0500, Ioana Radulescu wrote: > Let the driver remove() function print an informative message > after it finishes removing the network interface, not at an > arbitrary point during cleanup. > > Signed-off-by: Ioana Radulescu > --- > drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c > index beb5959..9fb88f2 100644 > --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c > +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c > @@ -2550,7 +2550,6 @@ static int dpaa2_eth_remove(struct fsl_mc_device *ls_dev) > priv = netdev_priv(net_dev); > > unregister_netdev(net_dev); > - dev_info(net_dev->dev.parent, "Removed interface %s\n", net_dev->name); > > if (priv->do_link_poll) > kthread_stop(priv->poll_thread); > @@ -2571,6 +2570,8 @@ static int dpaa2_eth_remove(struct fsl_mc_device *ls_dev) > dev_set_drvdata(dev, NULL); > free_netdev(net_dev); > > + dev_info(net_dev->dev.parent, "Removed interface %s\n", net_dev->name); Why is this even needed? I'll take it but spamming kernel logs for no reason is not a good idea :) thanks, greg k-h