From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5373C433F5 for ; Mon, 27 Sep 2021 10:45:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2E1860FC0 for ; Mon, 27 Sep 2021 10:45:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233887AbhI0Kqm (ORCPT ); Mon, 27 Sep 2021 06:46:42 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:59568 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233827AbhI0Kql (ORCPT ); Mon, 27 Sep 2021 06:46:41 -0400 X-UUID: 86040e8969d94873a66d43041b5bc807-20210927 X-UUID: 86040e8969d94873a66d43041b5bc807-20210927 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1256122782; Mon, 27 Sep 2021 18:45:02 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 27 Sep 2021 18:45:01 +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; Mon, 27 Sep 2021 18:45:00 +0800 From: Macpaul Lin To: Leon Yu , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , , , , CC: Miles Chen , Bear Wang , Pablo Sun , Fabien Parent , Macpaul Lin , Macpaul Lin , , Subject: backport commit ("c739b17a715c net: stmmac: don't attach interface until resume finishes") to linux-5.4-stable Date: Mon, 27 Sep 2021 18:45:00 +0800 Message-ID: <20210927104500.1505-1-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 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: netdev@vger.kernel.org Hi reviewers, I suggest to backport commit "c739b17a715c 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: c739b17a715c6a850477189fb7c5f9a6af74f4bb subject: net: stmmac: don't attach interface until resume finishes kernel version to apply to: Linux-5.4 Thanks. Macpaul Lin