Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp781617lqj; Sun, 2 Jun 2024 23:41:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6ztDDuVIu/9M94MdrWMBSZ3kitcNaMGvrl8dj4J5exyQMAAb/NT61MOkWSZahTcX6g5qvD36Lh2ytQxnzMJnOiy6KDJV9sNlBL6qjAg== X-Google-Smtp-Source: AGHT+IHr1x/LsGE3ZShwCvOGeLhID0xfVi6Snzvsnr3xCgHq4NvrP3gMc6oFSva1bZanrFkd4fhl X-Received: by 2002:a81:8314:0:b0:61a:df6b:9d71 with SMTP id 00721157ae682-62c798273famr79771077b3.48.1717396872391; Sun, 02 Jun 2024 23:41:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717396872; cv=pass; d=google.com; s=arc-20160816; b=WJQvp5QsO6cU/FORinrcQaCtwOEKFUvh1McDhKxPJ/aFP4bbMPTb/8TQwMcLD5+nJJ xdQTXbNzb5HhL1WQiLm/+V8sU9mdJruLqbeCqsc9a4GYV3T98Fc3hv9DqUshVi/T2B8J wDFpKKCiZEi7oASbHr9+FrjD+lVTU2XVEPlwEz2NUomZ4eNDFGuQEy0pF/+dksU3kGKG bg3KK5Cuq0ok4gRWKY2fYfFFqpoLoViCWy8ivwAfZJ5QdSSOAkZdXg3xi7DYa9wBY5Tb EgtuifGBnjaqp9tOq2u38yPpOkCpcCwkX8hSXpdk4D/juveUNE2mEuKlkHpd99aX/WNv zRHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=Hmi6GmS0Jk8m638a9+xALCK7h1XugpsP21TZuVpusoQ=; fh=ZB9vzP+v6q+uU/oKbgcfk/BgaZD3BsaJROEWkKqgkK4=; b=GWakYG9FQiW4yNIlEWMSs+bc5e7cpIsvD4q80CUU6K6NMhXVye5RQy872u5+Cyfabj Vs9up1ymOrVmpKG0C9vLUcDbsFNTSH28t0g6mmItXLsUDiXHwLnlmER+LoG7oR/4b/SJ YD1EVf0WATm2OV0YPvSh8IWrgV4Nwx7wXajUJPMab6pEDQf1kc7d7aQpfgS4rO9f3Aac 9a5gMzW733BiskviGZ0T8zcYI/2jvC4xZGqDvKn7FroyYMQJXi6GfOwqmkIU8yggtFJV FT567XFoBREiZ95fM7Jhx3MX15zbjfVC4ZSp6Yd0DbVe4TCVzwYxq4hOcCJnyNHk/8cy LMYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-198658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198658-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42b4f0si80010256d6.445.2024.06.02.23.41.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 23:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-198658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198658-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 010581C2126C for ; Mon, 3 Jun 2024 06:41:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0865E3C064; Mon, 3 Jun 2024 06:39:37 +0000 (UTC) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C0B38F91; Mon, 3 Jun 2024 06:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717396776; cv=none; b=WJjL2bg4B4YN7/ZrpWoiKbE6EDaMRwPobpPAtxiwNmnHBcISFD55rBlUgka/QPj7orK4IPqZI1eYRXcQxyJBFU2viJSmrz/TBsOlcTWFMgYh5P287SyUMu8fb32isM6odkPjhhqlaBPStdj6l5Nq3saXV9AD4ma7L8tA9TpBQus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717396776; c=relaxed/simple; bh=Hmi6GmS0Jk8m638a9+xALCK7h1XugpsP21TZuVpusoQ=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=WGokKBzJD0k4fThozWrf/oornORWmOFbuXFqKoPSfskhJeWloo4qSr1aw/ojRzuv2PYn8C7HsMs6NFVBRKwerkR8SWJb7r1OHMK20xXPo55sNSwA+/KOatXvkOInf+1t9olJTbn5fSocYCGJHy2Dnj7CJrJXskm0uWXkl49LeJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 4536d2vM52498792, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 4536d2vM52498792 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Jun 2024 14:39:02 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 3 Jun 2024 14:39:03 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 3 Jun 2024 14:39:02 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Mon, 3 Jun 2024 14:39:02 +0800 From: Hayes Wang To: Douglas Anderson , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: "danielgeorgem@google.com" , Andrew Lunn , Grant Grundler , Heiner Kallweit , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH REPOST net-next 2/2] r8152: Wake up the system if the we need a reset Thread-Topic: [PATCH REPOST net-next 2/2] r8152: Wake up the system if the we need a reset Thread-Index: AQHasusweTibC+IgXEuw091SCEGxx7G1mr4A Date: Mon, 3 Jun 2024 06:39:02 +0000 Message-ID: References: <20240530164304.REPOST net-next.1.Ibeda5c0772812ce18953150da5a0888d2d875150@changeid> <66590f25.170a0220.8b5ad.1752@mx.google.com> In-Reply-To: <66590f25.170a0220.8b5ad.1752@mx.google.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback Douglas Anderson > Sent: Friday, May 31, 2024 7:43 AM [...] > If we get to the end of the r8152's suspend() routine and we find that > the USB device is INACCESSIBLE then it means that some of our > preparation for suspend didn't take place. We need a USB reset to get > ourselves back in a consistent state so we can try again and that > can't happen during system suspend. Call pm_wakeup_event() to wake the > system up in this case. >=20 > Signed-off-by: Douglas Anderson Acked-by: Hayes Wang Best Regards, Hayes