power: sequencing: request the WLAN enable GPIO as-is
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 13 Aug 2024 19:07:50 +0000 (21:07 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 19 Aug 2024 07:55:53 +0000 (09:55 +0200)
commita9aaf1ff88a8cb99a1335c9eb76de637f0cf8c10
treebc5267405927a72522bbcda16019aa3f20887350
parent8400291e289ee6b2bf9779ff1c83a291501f017b
power: sequencing: request the WLAN enable GPIO as-is

If the WCN module is powered up before linux boots and the ath11k driver
probes at the same time as the power sequencing driver, we may end up
driving the wlan-enable GPIO low in the latter, breaking the start-up of
the WLAN module. Request the wlan-enable GPIO as-is so that if the WLAN
module is already starting/started, we leave it alone.

Fixes: 2f1630f437df ("power: pwrseq: add a driver for the PMU module on the QCom WCN chipsets")
Reported-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Link: https://lore.kernel.org/r/20240813190751.155035-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/power/sequencing/pwrseq-qcom-wcn.c