| Message ID | 20261117094551.13555-1-hsyysy@163.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-27771-sunxi=pue.re@lists.linux.dev> X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id 46DC01C81C6 for <noreply@patchwork.local>; Tue, 17 Nov 2026 10:46:51 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=163.com; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-27771-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-27771-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 4796C2BA3A for <noreply@patchwork.local>; Tue, 17 Nov 2026 09:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794908785; b=G0JQ2DF3hmrkRnDCUsdZF+oIwnspz6EPSWShhmUBlFiAjsPM9vOOfVPaKDa46IxN0iHf mluZaaGKoYFuX6DzNFkZoBjSpN8IQpEu95rTXl+wP4tOYQury4Mutgszc2Zbhirdk5LHQ y8quaNy+KA6csfGx8vD7DGz5FYsZRlq6my4u7JJAEKjIUjgMj3lecRiDuXILmIKkRhjor d71u6WJecishqUu4MzgVuKoONfP0BGo8NOtq8Pjz7xLL/fWopT2Pz0wjz5MeJlGx489a1 X+C3BZtiOd5vZn1bmTXYESChdmRhyMU3pxu7jEV6cmr8rdsjQtOI+8te8I8NEr3fguQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794908785; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=gsr7/IYfcSeGTQy76dVkG2pG06B1UPnep2DEc8I2vuc=; b=SXjK4fgG5ZL5+E6EhHHWAE+RkwRH4vHeW2C1bhCZN6nZprz8yPdtIXhE5QfzsndJtk6w q1izRwzA76vERuXcXVTvl4uG/aKelxUIF/lOcjlGvEH0Vw4OPnFCitDBfLp7Na99wt22S s6b20fE/vLRGOBCBag0tuiZfJuc+mZqhEA8+et7bWFxWtqG2aV7VmH+4uO++Kf//JojGd bEWWj6LlKyGDO3Jtru6GIr1Jcum1ujis160kMCAZ4Zv5rEGwPh5wxQYQcC5ftQhKCmaun L5flNAoAeJxiNmQ3he6CH8qGRQVm7c+yTDd8S8ZuJ3tDnJrZE2mndtWDnYOOFfggpag== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=hJbIwtc1; dmarc=pass header.from=163.com; spf=pass smtp.mailfrom=163.com; arc=fail smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF67606A33F; Tue, 17 Nov 2026 09:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=hJbIwtc1 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.5 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794908785; b=t+NY03OcG0GHYbMsSO2LCADQ5Do3v1xOB7GNtcVzSx4gBCE3UTPzmiF8dTr4MiwEij4c JTjGaXNsb+P4rxgzDUsSH26j+zMRofsXeg5eR2iQfFs/2FEU6DXZPYI2s/yqJs5FQAkAt OXtB0ymbxsiHTEuagTx6OpB29wvbGZpd7N6NaBOIb/fdb1Bnsz6lRaoH2rpFSWZCGTsGp d0tMJagB+fQ+Xsi7iOSFjHHXAlj2OyGgSYb1Fdfi4fMDdS8h9rUPbXXRlJlo3ZNCuDZUY M9Hg60xIpTGk/1WNsJXygNQZss+3J9oWx68MjWDPqLHmZXMhR7m/JnK+jf9ZOrV/Qqg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794908785; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-Originating-IP:X-CM-SenderInfo; bh=gsr7/IYfcSeGTQy76dVkG2pG06B1UPnep2DEc8I2vuc=; b=GbPckUdUdE3uuGY9YCDoUVd5PYlPrr6paqRNVYgtFGVtCBdK2nP4n+tHLR6Ugyd9ReKe 53bXs71u0/qjTcQJ2ax8+I/qTBbZgeTnv6yrfTd7zA5GUZry9F1hEAgyhgtewGth2R0gj HvaPJDiG5rxf/sEJS/7rbAODKGjNcpw1v9jMxodY6sa1iLc56ummOOzKAz8YnZMwuybJg VuTV7CBhVB98bECWiTRO8qZysS5OWtHJ54WwaQJQbtk+OPZWQew2MKz7gEVfKdiULtQwY of/5zb9hoGcLjwdNLl7WMVhTNtNPgqHS2ONDhOFiecHnpCrdCk6XdvEpDPEQhn4ml2Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=hJbIwtc1; arc=none smtp.remote-ip=117.135.210.5 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (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 72249606A33B for <linux-sunxi@lists.linux.dev>; Tue, 17 Nov 2026 09:46:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 72249606A33B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=gs r7/IYfcSeGTQy76dVkG2pG06B1UPnep2DEc8I2vuc=; b=hJbIwtc1tbNC56jZvr digXOxnk6vAVqdEMIKoQCFyRP2RQtKcz3NftbyVvpPFnkXzPhEOIVrTp4b/vRctk zhKqz/RylvhnZQOA9GPI1uVPN7TmkhtjdrG0b+zaAlTaojzbmMDy/dvfzD5wlTmL gI+JTXBg/NDmgDBw9XcBxVeFo= Received: from SYPC (unknown []) by gzsmtp3 (Coremail) with SMTP id PigvCgAHhDpaIvxqyachGg--.34767S2; Tue, 17 Nov 2026 17:46:03 +0800 (CST) From: Yang Siyuan <hsyysy@163.com> To: Chen-Yu Tsai <wens@kernel.org> Cc: Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: allwinner: rg35xx: keep RTL8821CS powered during suspend Date: Tue, 17 Nov 2026 17:45:51 +0800 Message-ID: <20261117094551.13555-1-hsyysy@163.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261117092024.12163-1-hsyysy@163.com> References: <20261117092024.12163-1-hsyysy@163.com> X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: <linux-sunxi.lists.linux.dev> List-Post: <mailto:linux-sunxi@lists.linux.dev> List-Help: <mailto:linux-sunxi+help@lists.linux.dev> List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev> List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev> Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: PigvCgAHhDpaIvxqyachGg--.34767S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7urWfGF47Wry7ZF1rJrWrZrb_yoW8Ww13pa y29w48Kwn8uw1jyr4kKF18Kr48Zr95KF45ZrykJ347Kw17ZFsYgr4akF1Y9rWjvrW8Jw42 yF4rX3W7Zr9I93JanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UWq2iUUUUU= X-CM-SenderInfo: 5kv152r16rljoofrz/xtbC7Rt4rGr8IluYmQAA3M X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [4.81 / 15.00]; RBL_SENDERSCORE(2.00)[104.64.211.4:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[117.135.210.5:received,100.77.114.92:received]; FREEMAIL_CC(0.00)[gmail.com,sholland.org,lists.infradead.org,lists.linux.dev,vger.kernel.org]; DBL_BLOCKED_OPENRESOLVER(0.00)[sin.lore.kernel.org:helo,sin.lore.kernel.org:rdns,0.0.0.1:email]; FORGED_SENDER_MAILLIST(0.00)[]; R_DKIM_ALLOW(0.00)[163.com:s=s110527]; ASN(0.00)[asn:63949, ipnet:104.64.192.0/19, country:SG]; FROM_NEQ_ENVFROM(0.00)[hsyysy@163.com,linux-sunxi@lists.linux.dev]; R_SPF_ALLOW(0.00)[+ip4:104.64.211.4]; DKIM_TRACE(0.00)[163.com:+]; FREEMAIL_FROM(0.00)[163.com]; TO_DN_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCPT_COUNT_SEVEN(0.00)[7]; MIME_TRACE(0.00)[0:+]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_FROM(0.00)[bounces-27771-noreply=patchwork.local]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[104.64.211.4:from] X-Rspamd-Queue-Id: 46DC01C81C6 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX |
| Series |
[v2] arm64: dts: allwinner: rg35xx: keep RTL8821CS powered during suspend
|
|
Commit Message
Yang Siyuan
Nov. 17, 2026, 9:45 a.m. UTC
The RTL8821CS SDIO WiFi on the RG35XX Plus/SP is soldered and powered by
CLDO4. rtw88's SDIO suspend callback asks the MMC host to keep power
during system suspend:
rtw88_8821cs mmc1:0001:1: Failed to host PM flag MMC_PM_KEEP_POWER
sdio_set_host_pm_flags() only accepts MMC_PM_KEEP_POWER when the host's
pm_caps contains it, and mmc_of_parse() sets that flag from the
"keep-power-in-suspend" DT property. Without it, the first s2idle
suspend aborts with -EINVAL before the system can enter suspend.
Add keep-power-in-suspend to &mmc1 so the WiFi stays powered and s2idle
works. Tested on an Anbernic RG35XX-SP: the board suspends and resumes
from the lid switch, and the WiFi reconnects after resume.
Fixes: 398e5fdf60ed ("arm64: dts: allwinner: h700: Add RG35XX-Plus DTS")
Signed-off-by: Yang Siyuan <hsyysy@163.com>
---
Changes in v2:
- Add the Fixes tag suggested by Sashiko.
.../boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts | 2 ++
1 file changed, 2 insertions(+)
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts index 60a8e49..ceb25a3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts @@ -27,6 +27,8 @@ mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; + /* rtw88's SDIO suspend requires MMC_PM_KEEP_POWER. */ + keep-power-in-suspend; status = "okay"; sdio_wifi: wifi@1 {