Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp869478pxk; Thu, 3 Sep 2020 14:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUY6sfS1w9xhqp05Sly5n1scuhtdgZGjAtLFJssTOG8LahN1avQx9GfocMFHsmSEhIM/XL X-Received: by 2002:a05:6402:209:: with SMTP id t9mr1331268edv.208.1599170370234; Thu, 03 Sep 2020 14:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599170370; cv=none; d=google.com; s=arc-20160816; b=oXjf+zVVGiTGIh7T2gP97/sLXu1NSNuCvohCpLI7A7o03cexzQ3kgHH+zol4SP2B5R 3XsCP3CCW11dpFVfDtgZ3oKfdkmwK81uSTTOe4JfHoLu2jUNVLiE+rBD3dZdXIJprGih LXtgJ9G8fRnoFl7u+yDGYAZZVfPoRWDGBqxAcks/6/4fxrFddMVVuLkauWnhfY8564wj BiY/hYhG1Cp34m+9HTEkrD7p7G6MmHD1hkPH26duR/AogmI/0T/IeNsEgMMSzDmyeyHG h4xMmqHKyqKo1PJuopajzG5deEZFEdWljALrqjEdPE7Ea7Hj+AYW6v9qh9Pm7lRDiisR Pvjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=/xb2DpHQAKqid0RBuXMN8CgEratXWyouUj+Z27vxc6k=; b=LuZgReogwrBCKUB5MhU7kwSpvo8cQGgm+XeatCiVCEajH/C215NpxwkM6aedeAVSo/ AmZg4AHN6o2v8ispSmApu/Qf050SoathqgTS005CccFOU5bmiEShNhgfb89VUDHMEIwY p3eJ2p56sfBIRcOczdRdfli3eVdJ34uKk/z3HOm1nwDq5HB8V3U6uy8yZc1kDOD7nh5q smzV3Qpp4YbmPz/KypNQvLZFFHe+Rmb7+Vz3e9rC2KF7KRFi/Ua6IFSnaNkgMuekAG8m hYsOQxniGd8LRIpFcgmaTACdd1FKgVvDpk5qYS+7lw1qfSfGABBWylwXfvjBnLRPFyQC MY6g== ARC-Authentication-Results: i=1; mx.google.com; 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 dp1si4077986ejc.38.2020.09.03.14.59.07; Thu, 03 Sep 2020 14:59:30 -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; 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 S1728582AbgICV60 (ORCPT + 99 others); Thu, 3 Sep 2020 17:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbgICV60 (ORCPT ); Thu, 3 Sep 2020 17:58:26 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 096A6C061244; Thu, 3 Sep 2020 14:58:26 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8335F1278BDC7; Thu, 3 Sep 2020 14:41:38 -0700 (PDT) Date: Thu, 03 Sep 2020 14:58:24 -0700 (PDT) Message-Id: <20200903.145824.62292077708642050.davem@davemloft.net> To: geert+renesas@glider.be Cc: hkallweit1@gmail.com, f.fainelli@gmail.com, andrew@lunn.ch, kuba@kernel.org, gaku.inami.xh@renesas.com, yoshihiro.shimoda.uh@renesas.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev" From: David Miller In-Reply-To: <20200901150237.15302-1-geert+renesas@glider.be> References: <20200901150237.15302-1-geert+renesas@glider.be> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Thu, 03 Sep 2020 14:41:38 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven Date: Tue, 1 Sep 2020 17:02:37 +0200 > This reverts commit 124eee3f6955f7aa19b9e6ff5c9b6d37cb3d1e2c. Heiner, please review this. Thank you. > Inami-san reported that this commit breaks bridge support in a Xen > environment, and that reverting it fixes this. > > During system resume, bridge ports are no longer enabled, as that relies > on the receipt of the NETDEV_CHANGE notification. This notification is > not sent, as netdev_state_change() is no longer called. > > Note that the condition this commit intended to fix never existed > upstream, as the patch triggering it and referenced in the commit was > never applied upstream. Hence I can confirm s2ram on r8a73a4/ape6evm > and sh73a0/kzm9g works fine before/after this revert. > > Reported-by Gaku Inami > Signed-off-by: Geert Uytterhoeven > --- > net/core/link_watch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/core/link_watch.c b/net/core/link_watch.c > index 75431ca9300fb9c4..c24574493ecf95e6 100644 > --- a/net/core/link_watch.c > +++ b/net/core/link_watch.c > @@ -158,7 +158,7 @@ static void linkwatch_do_dev(struct net_device *dev) > clear_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state); > > rfc2863_policy(dev); > - if (dev->flags & IFF_UP && netif_device_present(dev)) { > + if (dev->flags & IFF_UP) { > if (netif_carrier_ok(dev)) > dev_activate(dev); > else > -- > 2.17.1 >