Skip to content

Commit a9aaf1f

Browse files
author
Bartosz Golaszewski
committed
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: 2f1630f ("power: pwrseq: add a driver for the PMU module on the QCom WCN chipsets") Reported-by: Stephan Gerhold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8400291 commit a9aaf1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/sequencing/pwrseq-qcom-wcn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)
283283
"Failed to get the Bluetooth enable GPIO\n");
284284

285285
ctx->wlan_gpio = devm_gpiod_get_optional(dev, "wlan-enable",
286-
GPIOD_OUT_LOW);
286+
GPIOD_ASIS);
287287
if (IS_ERR(ctx->wlan_gpio))
288288
return dev_err_probe(dev, PTR_ERR(ctx->wlan_gpio),
289289
"Failed to get the WLAN enable GPIO\n");

0 commit comments

Comments
 (0)