Re: [PATCH] power: sequencing: qcom-wcn: don't request BT enable GPIOs for wcn7850
From: Dmitry Baryshkov
Date: Tue Jul 02 2024 - 07:43:26 EST
On Tue, 2 Jul 2024 at 14:41, Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> Due to having many existing users of wcn7850 in the kernel, conversion
> of the hci_qca driver to using pwrseq exclusively must be done
> carefully. Right now, the Bluetooth driver requests and controls the BT
> enable GPIO and so the PMU pwrseq driver must not do it or we will run
> into problems depending on the probe ordering.
>
> Add a flag that tells the driver not to request the BT-enable GPIO. We
> will remove it once the conversion of the Bluetooth driver is complete.
This will not prevent the pinctrl conflict if both PMU and BT devices
declare pinctrl for the BT_EN pin.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> ---
> drivers/power/sequencing/pwrseq-qcom-wcn.c | 17 +++++++++++++----
> 1 file changed, 13 insertions(+), 4 deletions(-)
>
--
With best wishes
Dmitry