Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1797059pxk; Tue, 1 Sep 2020 08:04:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxTxk3+Az/e00+vQV/MhmCr68ER75x5fN+2isc1LPFA9v3CHHvFCqiV0Dey7BYGeWOKrQu X-Received: by 2002:a17:906:1589:: with SMTP id k9mr1758746ejd.115.1598972640200; Tue, 01 Sep 2020 08:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598972640; cv=none; d=google.com; s=arc-20160816; b=Eeya+eM7wpsm47W3NBRlG3Lj3evJssfeon4TEpowDwAlhx6M4xlGfPWV0in3vvWfTN 2FFxfsH5qUv4fh41bikCK1IKTgSal6FlZpOaprUL/z1MjbiRmY+1+0c0OShx39nIgprF 2uzyiWQ8OlB3g1I90cJbaaZv83U6mrkZvRmrRsNt3RlEcvcUvFPLYDC71I8yDleTrkc4 u4Y3KOgwfgtftNyA3t9JqStjjq9OezFX5ancupLezqsa0r9x0WLiizGzwPg5GAYKwhJ2 Jzauot+ZMZj99HyxTKbJy74jAwxBodFl+bMTvfSThKRKEe+4uW3SWGdAgsZwUxyczQZu skwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=GeANyzrRA44YqwmrihspT6EeID3j5N4TZ+ydPxvDuyg=; b=jXehmpZ2YZUsyRxueYqJDXRwXExtKVsgpXxPt0I+tog5vd6/hfWSRrwl/Az/mGy/pr pjgyY5KZSM0IpRrXTYJOkwOCUbpfyF3YkqeZYwbE+0qqnodFbS2HGgsWk/Pjjqj1zhcG mBL5DaUd2wZsDW7e++b+cgVL/NMKrsPK1AAzyrHUid537ObbP4BsJqRARvJYJK2+Osmb mGsKvwtLz7nJL8VxFrDDrcHRNiBRyI7MvfjP4VQrCRLhd6zMJiGp/o29p+gIJpVMi6Id OVVkfkhd77YWepZqgclUiidqvZPJojf2hQ9tKobnfaTgSm7OFxuNsrfcFuj7t4tCHEMf pbgQ== 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 v4si677201edw.450.2020.09.01.08.03.36; Tue, 01 Sep 2020 08:04:00 -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 S1728279AbgIAPCq (ORCPT + 99 others); Tue, 1 Sep 2020 11:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726800AbgIAPCn (ORCPT ); Tue, 1 Sep 2020 11:02:43 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1EF7C061245 for ; Tue, 1 Sep 2020 08:02:42 -0700 (PDT) Received: from ramsan ([84.195.186.194]) by baptiste.telenet-ops.be with bizsmtp id Nf2g230054C55Sk01f2g9P; Tue, 01 Sep 2020 17:02:40 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1kD7o0-000651-3o; Tue, 01 Sep 2020 17:02:40 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1kD7o0-0003zf-1W; Tue, 01 Sep 2020 17:02:40 +0200 From: Geert Uytterhoeven To: Heiner Kallweit , Florian Fainelli , Andrew Lunn , "David S . Miller" , Jakub Kicinski Cc: Gaku Inami , Yoshihiro Shimoda , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev" Date: Tue, 1 Sep 2020 17:02:37 +0200 Message-Id: <20200901150237.15302-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 124eee3f6955f7aa19b9e6ff5c9b6d37cb3d1e2c. 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