Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mm-phyboard-polis-rdk: Keep WLAN powered in suspend
@ 2026-12-03 13:00 Andrej Picej
  2026-12-03 13:18 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Picej @ 2026-12-03 13:00 UTC (permalink / raw)
  To: Frank Li, Sascha Hauer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: kernel, Fabio Estevam, Teresa Remmet, devicetree, imx,
	linux-arm-kernel, linux-kernel, upstream, Andrej Picej

Without cap-power-off-card, brcmfmac keeps the WLAN card powered during
suspend and requests MMC_PM_KEEP_POWER. usdhc1 does not advertise it, so
mmc_sdio_suspend() warns and the card stops responding (-110).

Add keep-power-in-suspend to usdhc1.

Signed-off-by: Andrej Picej <andrej.picej@norik.com>
---
 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
index 6043e7d16306..e3e99485fae3 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
@@ -304,6 +304,7 @@ &usdhc1 {
 	assigned-clocks = <&clk IMX8MM_CLK_USDHC1>;
 	assigned-clock-rates = <200000000>;
 	bus-width = <4>;
+	keep-power-in-suspend;
 	mmc-pwrseq = <&usdhc1_pwrseq>;
 	non-removable;
 	no-1-8-v;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: imx8mm-phyboard-polis-rdk: Keep WLAN powered in suspend
  2026-12-03 13:00 [PATCH] arm64: dts: imx8mm-phyboard-polis-rdk: Keep WLAN powered in suspend Andrej Picej
@ 2026-12-03 13:18 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-03 13:18 UTC (permalink / raw)
  To: Andrej Picej; +Cc: devicetree, imx, robh, conor+dt, Frank.Li

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: usdhc1 keep-power-in-suspend conflicts with
  reg_nvcc_sd1 off
--

commit a1cd3759ba1984cab2e31a4a69fc9fbe91d3b37c
Author: Andrej Picej <andrej.picej@norik.com>

arm64: dts: imx8mm-phyboard-polis-rdk: Keep WLAN powered in suspend

This commit adds keep-power-in-suspend to the usdhc1 node so the WLAN card
is kept powered across suspend.

> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> index 6043e7d163069..e3e99485fae3e 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> @@ -304,6 +304,7 @@ &usdhc1 {
>  	assigned-clocks = <&clk IMX8MM_CLK_USDHC1>;
>  	assigned-clock-rates = <200000000>;
>  	bus-width = <4>;
> +	keep-power-in-suspend;
>  	mmc-pwrseq = <&usdhc1_pwrseq>;
>  	non-removable;
>  	no-1-8-v;

[Severity: Medium]
Does keep-power-in-suspend on usdhc1 conflict with reg_nvcc_sd1 being turned
off during suspend-to-RAM?

imx8mm-phycore-som.dtsi configures reg_nvcc_sd1 (ldo1) with
regulator-off-in-suspend under regulator-state-mem, and this board file does
not override it.  During suspend-to-RAM, regulator_suspend() calls
pf8x00_suspend_disable() and powers down the NVCC_SD1 I/O rail.

Both the usdhc1 SDIO pins (pinctrl_usdhc1) and the usdhc1_pwrseq reset GPIO
(SD1_DATA5 in pinctrl_wlan) sit in the NVCC_SD1 bank.  Dropping NVCC_SD1
either resets the WLAN card, causing -110 on resume when reinitialization is
skipped, or leaves 3.3V SDIO pins driving unpowered SoC pads.

Should reg_nvcc_sd1 be overridden with regulator-on-in-suspend here, or
should usdhc1 set cap-power-off-card so brcmfmac powers the card off via
usdhc1_pwrseq instead?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203130049.2041041-1-andrej.picej@norik.com?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 13:00 [PATCH] arm64: dts: imx8mm-phyboard-polis-rdk: Keep WLAN powered in suspend Andrej Picej
2026-12-03 13:18 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox