Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4662713pxb; Tue, 28 Sep 2021 00:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwECjss6u5Q1Eh2jE396/MBaQDQJEPFMkyUmlTfmo/+CpGPoJ4FmQcDYaaHJOgvzxFq318G X-Received: by 2002:a50:9d0f:: with SMTP id v15mr5966093ede.275.1632815152157; Tue, 28 Sep 2021 00:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632815152; cv=none; d=google.com; s=arc-20160816; b=f4VP9Xj1RgxLH4aLP67YWDvk0SJ/azH6DKTpXfHeqchRV2YS2is/9obS8t+WC7o9J/ bByyJiQlPK26cm+z1/GmEuS2+g+G5HdzFbuud9FxVxy8YB9bKWDS9I4XXui6LnUQzWaZ vk8Y68U6rJIbn7bZbA2BQRT9nuGcvbpZVfM6b3yDg220D/tabY3DyIZPvVEtQIWZCg8a YLDiHwW7ay/Kjgw75IETaMqNOJBPGANEcQIKj65ExelwXSVGrOd+ULJSDQ1rStwH4ngG DLa5D7yo2KiOkpqd4nlbBwPKFyNz61MYp9ShEFi+x9Uj3tU+qDksrjK+IgzJW2UTgbnp k0sg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=n9oYFScxuxwUIPBxWcWCXg+USXu8XmYrWLIM8Sr6j/w=; b=aas32hfImKv/Miuqlu+PwtZYMHmo8XR/+Mrljh3OBOyYNs4SmdUxTsAjlDtCZIoywL 8yf+VdKmpZlWVkrSTsF35t8AfBqum6I+8bF8Lu2nETr/qDg6sTaor6n/aCZdjjxRQ0xh Z/7Ej7o8xxaeOW23OAulJBFN6+uMDiNNmB0C+JB13gWBJ89E0gy3VEA+4S6ZhSg4+2rX SMCECmjcZ3KxTWAbT92ULp4S342ylivvemCJCCfFvkz7eI8R3NZ7mQg9k29+aKlb9fV0 Io7AueaquiVixzLlrXfXdZX/FoOvJ7REZrnVb+hL/6qLdaRvDYnCVf+YWGV5XwkxLAff IfgA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd21si28038965ejc.580.2021.09.28.00.45.28; Tue, 28 Sep 2021 00:45:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239393AbhI1Hpd (ORCPT + 99 others); Tue, 28 Sep 2021 03:45:33 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:51304 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239369AbhI1Hpc (ORCPT ); Tue, 28 Sep 2021 03:45:32 -0400 X-UUID: 83cac08256f941a6bd1d3a154a0a2aa2-20210928 X-UUID: 83cac08256f941a6bd1d3a154a0a2aa2-20210928 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1761110263; Tue, 28 Sep 2021 15:43:50 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 28 Sep 2021 15:43:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Sep 2021 15:43:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 28 Sep 2021 15:43:49 +0800 From: Macpaul Lin To: Leon Yu , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , , , , , Fabien Parent CC: Miles Chen , Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , , Subject: backport commit ("31096c3e8b11 net: stmmac: don't attach interface until resume finishes") to linux-5.4-stable Date: Tue, 28 Sep 2021 15:43:49 +0800 Message-ID: <20210928074349.24622-1-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210927104500.1505-1-macpaul.lin@mediatek.com> References: <20210927104500.1505-1-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi reviewers, I suggest to backport commit "31096c3e8b11 net: stmmac: don't attach interface until resume finishes" to linux-5.4 stable tree. This patch fix resume issue by deferring netif_device_attach(). However, the patch cannot be cherry-pick directly on to stable-5.4. A slightly change to the origin patch is required. I'd like to provide the modification to stable-5.4 if it is needed. commit: 31096c3e8b1163c6e966bf4d1f36d8b699008f84 subject: net: stmmac: don't attach interface until resume finishes kernel version to apply to: Linux-5.4 Sorry for that I've send a wrong commit hash which is in my working tree previously. Thanks. Macpaul Lin