Article View: linux.kernel.netdev
Article #21208Re: [PATCH net v2 2/2] net: wwan: iosm: fix S3 resume by re-binding the driver around it
From: "Maciej S. Szmigiero"
Date: Mon, 23 Nov 2026 18:07
Date: Mon, 23 Nov 2026 18:07
54 lines
12986 bytes
12986 bytes
On 23.11.2026 04:17, David Westen wrote: > Hi Maciej, > > Thanks for the review! > > On 11/22/26 12:01 PM, Maciej S. Szmigiero wrote: >> On 19.11.2026 05:27, David Westen wrote: >>> - Entering suspend-to-idle or standby explicitly while the default is >>> S3 also re-binds the driver. >> >> I think this re-binding should never happen on s2idle, even though S3 >> might be the default mem sleep method. >> >> It looks to me that the only remaining case here is the "opportunistic >> sleep" code which does not use mem_sleep_current (so won't be covered by >> pm_suspend_default_s2idle()) - but uses autosleep_state instead. > > Agreed, that would be better. The problem is that the PM notifier > isn't told the target state, and pm_suspend_target_state is only set > after PM_SUSPEND_PREPARE, so the default was the closest the driver > could get on its own. > > Covering both cases would need the PM core to make the target state > available before the notifiers run, like pm_suspend_notify_state in > your earlier S3 patch. Do you think that's needed for this fix, or > would it be acceptable as a follow-up? I think if this would be considered a regression when this driver is used with opportunistic sleep functionality then such case should be covered already in the initial patch set. However, looking deeper in this opportunistic sleep functionality it seems that most major "generic" x86 distributions disable it and there's no credible report of anyone using it on a generic x86 laptop. So in this case I think it would be fine just documenting the limitations of this fix both in the commit message and in the comment in pm_notify(). >>> - A suspend to S3 that calls pm_suspend(PM_SUSPEND_MEM) directly while >>> the default is suspend-to-idle is not covered and fails as before. >> >> Are there any such pm_suspend(PM_SUSPEND_MEM) calls in the kernel (outside >> some test code)? > I found a few: APM emulation, pseries, via-pmu, ZynqMP, SCMI power > control and the SPI slave system control driver. None of them seem to > be x86 ones. I'm pretty sure we don't need to worry about these. > David Thanks, Maciej
Technical Details
Message-ID:
<6d09e0b3-e718-4112-99fa-bbe1fd2aa97c@maciej.szmigiero.name>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369653-linux-kernel-netdev=dewy.ruReferences:
<20261119042714.505405-1-davidlwesten@gmail.com> <20261119042714.505405-2-davidlwesten@gmail.com> <5651d569-d291-48e1-b38d-8cbdb2c2f0a8@maciej.szmigiero.name> <e011f909-bc90-45b0-9065-e517ffcbcf2a@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369653-linux-kernel-netdev=dewy.ru
From: mail@maciej.szmigiero.name ("Maciej S. Szmigiero")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/2] net: wwan: iosm: fix S3 resume by re-binding
the driver around it
Date: Mon, 23 Nov 2026 19:07:06 +0100
Organization: Usenet Network
Sender: mhej@vps-ovh.mhejs.net
Message-ID: <6d09e0b3-e718-4112-99fa-bbe1fd2aa97c@maciej.szmigiero.name>
References: <20261119042714.505405-1-davidlwesten@gmail.com>
<20261119042714.505405-2-davidlwesten@gmail.com>
<5651d569-d291-48e1-b38d-8cbdb2c2f0a8@maciej.szmigiero.name>
<e011f909-bc90-45b0-9065-e517ffcbcf2a@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3947916"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wBiLGV21muhoiJe8n4Jm95zEUmk= sha256:i4einOc7iLuKv8oC6i0AcSr1p68HtgSfR+V683CKDMM=
sha1:fr+hqOjExokLRcHgC14z8gXn02w= sha256:4VC0vK5tf6GgoN2BgotnrFMR3sTqb0gz9QtrMWg11TA=
Content-Language: en-US, pl-PL
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 13FAE125DC3; Mon, 23 Nov 2026 21:07:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id dqw8IzC9gDFY;
Mon, 23 Nov 2026 21:07:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369653-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id ABC7A125DC0; Mon, 23 Nov 2026 21:07:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id EB7A22E096; Mon, 23 Nov 2026 18:07:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795457252;
b=Fi2+xQ263z9fnjbwdst8l7W7cbczzFab3JZa4MIlwE/05QWLywItJ/IQKn1cTdocQ+ZE
pzWsXna9XiULCSGZM1X/TDOFr2z5IcMWoAedmEOhs7rp01acf0gcfUZMUu4ZBqLRd9hvs
FDMZXMECUABflGJzZGTBhnp4avolATbDdcGVWqZ+ctnX+PU47LsbxIT1DB9pWehsdZ6G9
UoLSCWtqP2hlBdnKXoifE6QIZQHJMHTWawCriH4AuLDfGXaMs1vzgEHTPOApOMMfdtvaS
wG8JpFiYKKINAo5OFd6PWpE4pM16ucT86xw0lmyuTKquIU0EtjKg434h6exnIfIjubQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795457252;
h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
Subject:To:Cc:References:From:Content-Language:Autocrypt:
Disposition-Notification-To:In-Reply-To:Content-Type:
Content-Transfer-Encoding:Sender;
bh=bp70Jh8sDMsjODuz8bbDpOzCbB8Sp/wdentCbU1pHRE=;
b=eCKA7adJFc2+h6x7eovMPfw7IsIskjUlrQhb4CyQvNvs/GZSQU2H13MkM2Fd4quRdl2Q
aLFuzZMh75ByKYZhe9A1QbLjAq4Yif/kZlamieLMZBWWRqW18vzZcPgwLNf4/qNZDl2vK
aXtVAllFZPnQhIQZ3xVVwU3aewU/LsUlxVSpIsK5b3wQknltx85/olQUUJ380SelG4Zqx
g88IFUtgGQsSsdrby1er0HlFOplkHG+v1oGg9dla8ESYVJsEX47VO3/ArFqLNN59/YFkS
h3RXyeSoCb9c+evS1yfMaDvbYS/X2oUwrbOueTID5T1TLx7cvuZcoykUePsANP9Runw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=none header.from=maciej.szmigiero.name;
spf=pass smtp.mailfrom=vps-ovh.mhejs.net;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D3BD606A327;
Mon, 23 Nov 2026 18:07:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=145.239.82.108
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795457241;
b=EgPYMWpM7V30fbFJLBKYAkjvXEsUDaXg95HXDfmvSrZJAMX1L05gw+AJrk1TawnaVXm4
Ptb2xeKhy7vfSVoItdGtrsryfr9cN5RR2l6P4TTBRfcmYlif43nrf1M0bMllTjcvftw2d
su7Ic2DDV4mhh5V2nwtDKXne5cDtP/J93BAQj+cfAt0NE9MLaCeBNcUHd41b4t2G1ylvr
OG8CCe3+gHyH/C2VCXEjKlsdJZ85FwvB9nf1M7lY+eWMVlfuDqReMZWslVfhUu+cXGfKY
Q3gH9VPpX9Wd/rKb08XaZP6HMUSWqVKOf7XArK1HybYMvp7CFFng6VsJC289/oXplaA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795457241;
h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:
Subject:To:Cc:References:From:Content-Language:Autocrypt:
Disposition-Notification-To:In-Reply-To:Content-Type:
Content-Transfer-Encoding:Sender;
bh=bp70Jh8sDMsjODuz8bbDpOzCbB8Sp/wdentCbU1pHRE=;
b=yUobbpzHNQ2z3h4dB2Ka/bMHfwz2O/NGjZdhRp2k/IUdh2bVyKz7XttDKRzM0Zu/Vnvk
vLFF3ZaEFv+mAIqp5qkdZf5BIoBon4sxlJW6PFAd1j78XpNQMWvyln2/fi+pelF1Snju3
znPYvZ+7GrFD1K2z8lCukt/fE6rOm9FM2apwv071ON9Is3BircfFHoRhfTWe2PlbeVh9E
dSO9bWnd9n3h1kWNus7KPx7EZlyJG6l5xBLstzG8/rqa4dmR4tMNZ4ObxlOANJ4i98quo
zKc2hHRFFqqKCsWwtzHOLTKM2fpAH2BtGLVyErNx3IfNB9iYEPOBhvlFjYWehkIy0Ng==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=maciej.szmigiero.name;
spf=pass smtp.mailfrom=vps-ovh.mhejs.net;
arc=none smtp.remote-ip=145.239.82.108
X-Received: from vps-ovh.mhejs.net (vps-ovh.mhejs.net [145.239.82.108])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A41A4606A31E;
Mon, 23 Nov 2026 18:07:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A41A4606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vps-ovh.mhejs.net
X-Received: from MUA
by vps-ovh.mhejs.net with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256
(Exim 4.100.1)
(envelope-from <mhej@vps-ovh.mhejs.net>)
id 1xVYRb-000000016hu-1kRu;
Mon, 23 Nov 2026 19:07:11 +0100
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: loic.poulain@oss.qualcomm.com, ryazanov.s.a@gmail.com,
johannes@sipsolutions.net, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
linux-kernel@vger.kernel.org, nihaal@cse.iitm.ac.in, stable@vger.kernel.org,
netdev@vger.kernel.org
X-Autocrypt: addr=mail@maciej.szmigiero.name; keydata=
xsFNBFpGusUBEADXUMM2t7y9sHhI79+2QUnD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kM4JdwUCaZD5YwUJ
ESzCOAAKCRCEf143kM4Jd4+KEADEBLxVKXGqinMD1nb/QPA0Rj35WluRdPIB2dcDcyTOtiyN
ErIQQMhr0W4sxZOd741a2nv89VZKjzBNjihOZgbEuHfG/0lhIZ5t6aF7k4gbMctzQT7utzmD
y5OoV+/VFHguLThwxRvCMkGEieE8Cb4muYdQgaq1s5ipV1IqF3cDYg2iGupnsYSgOfw7ZyvG
9c7Fxn7jiD/wI9eL3AesCkVFbF0r/9yLbuW6vh3kd/+bORO1GK4snSjrZLi04bnihnDfa33N
Pik3cmUZZANzo+HkADZjJ1pl3DZn1Qj8STk6YhaTtJhLKH4lteAlSS4xRIeoiw/2hbzbRr4j
hnu96hf6ukM7E7oC89SfWGXZHbUds77MFyKvBTCMJnkQq+PbmYp1vgTnOl3JO7ARZ3rNPkHE
IpOWDjHRyDiKVVxt2bKaELZrFGcYYTVXt9pUfY1xFt76G0piVr50+jTezgMmZYr7aZOrqlUi
WHQjcZZbROLql/+ngphSgdthGIhVWrIMHJu1UxnRiwKc/fzDFUZ9hFL+W4ZLm+52TzMatpta
oNdcP9rtsQjdYMNLuwysP4keDX8yBXADwJD7eQ+ryIIKh6X1lBMIWxeZG5W0DQ6/4BCUEbCe
1DqkYRtZyUEzgAbaHliaa5t3dfCtSMz5cAbGqxarXc7bKOjA6P8hCwgP0tEypA==
X-Disposition-Notification-To: "Maciej S. Szmigiero"
<mail@maciej.szmigiero.name>
X-In-Reply-To: <e011f909-bc90-45b0-9065-e517ffcbcf2a@gmail.com>