Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+7
+7
drivers/power/sequencing/pwrseq-qcom-wcn.c
··· 288 288 return dev_err_probe(dev, PTR_ERR(ctx->wlan_gpio), 289 289 "Failed to get the WLAN enable GPIO\n"); 290 290 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 + 291 298 ctx->clk = devm_clk_get_optional(dev, NULL); 292 299 if (IS_ERR(ctx->clk)) 293 300 return dev_err_probe(dev, PTR_ERR(ctx->clk),