Skip to content

Commit 8463be8

Browse files
committed
Merge tag 'pwrseq-fixes-for-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull power sequencing fix from Bartosz Golaszewski: "A follow-up fix for the power sequencing subsystem. It turned out the previous fix for this driver was incomplete and broke the WLAN support on some platforms. This addresses the issue. - set the direction of the wlan-enable GPIO to output after requesting it as-is" * tag 'pwrseq-fixes-for-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: power: sequencing: qcom-wcn: set the wlan-enable GPIO to output
2 parents e8784b0 + d8b7620 commit 8463be8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,13 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)
288288
return dev_err_probe(dev, PTR_ERR(ctx->wlan_gpio),
289289
"Failed to get the WLAN enable GPIO\n");
290290

291+
/*
292+
* Set direction to output but keep the current value in order to not
293+
* disable the WLAN module accidentally if it's already powered on.
294+
*/
295+
gpiod_direction_output(ctx->wlan_gpio,
296+
gpiod_get_value_cansleep(ctx->wlan_gpio));
297+
291298
ctx->clk = devm_clk_get_optional(dev, NULL);
292299
if (IS_ERR(ctx->clk))
293300
return dev_err_probe(dev, PTR_ERR(ctx->clk),

0 commit comments

Comments
 (0)