[PATCH v2 2/3] dt-bindings: net: bluetooth: Convert to DT schema

2021-04-20 Thread Venkata Lakshmi Narayana Gubba
Converted Qualcomm Bluetooth binidings to DT schema. Signed-off-by: Venkata Lakshmi Narayana Gubba --- .../devicetree/bindings/net/qualcomm-bluetooth.txt | 69 - .../bindings/net/qualcomm-bluetooth.yaml | 87 ++ 2 files changed, 87 insertions(+), 69

[PATCH v2 0/3] Enable Bluetooth functinality for WCN6750

2021-04-20 Thread Venkata Lakshmi Narayana Gubba
These patches enables Bluetooth functinalties for new Qualcomm Bluetooth SoC wcn6750. Changes in v2: * Converted Qualcomm bluetooth bindings to DT schema. * Added device tree bindings for QTI chip wcn6750 in converted DT schema. Venkata Lakshmi Narayana Gubba (3): Bluetooth: hci_qca: Add

[PATCH v2 3/3] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn6750

2021-04-20 Thread Venkata Lakshmi Narayana Gubba
This patch enables regulators and gpios for the Qualcomm Bluetooth wcn6750 controller. Signed-off-by: Venkata Lakshmi Narayana Gubba --- .../bindings/net/qualcomm-bluetooth.yaml | 54 +- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH v2 1/3] Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6750

2021-04-20 Thread Venkata Lakshmi Narayana Gubba
type image. 7. If mbn type image is not present then we will check for tlv type image. 8. Moved extracting rom version info to common place as this code is common in all if else ladder in qca_uart_setup. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 88

[PATCH v1 0/2] Enable Bluetooth functinality for WCN6750

2021-03-11 Thread Venkata Lakshmi Narayana Gubba
These patches enables Bluetooth functinalties for new Qualcomm Bluetooth SoC wcn6750. This SoC requires both regulators and GPIO to turn on/off. This SoC supports mbn format image for firmware download. Venkata Lakshmi Narayana Gubba (2): Bluetooth: hci_qca: Add support for QTI Bluetooth chip

[PATCH v1 1/2] Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6750

2021-03-11 Thread Venkata Lakshmi Narayana Gubba
type image. 7. If mbn type image is not present then we will check for tlv type image. 8. Moved extracting rom version info to common place as this code is common in all if else ladder in qca_uart_setup. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 85

[PATCH v1 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn6750

2021-03-11 Thread Venkata Lakshmi Narayana Gubba
This patch enables regulators and gpios for the Qualcomm Bluetooth wcn6750 controller. Signed-off-by: Venkata Lakshmi Narayana Gubba --- .../devicetree/bindings/net/qualcomm-bluetooth.txt | 43 ++ 1 file changed, 43 insertions(+) diff --git a/Documentation/devicetree

[RFC PATCH v2] Bluetooth: hci_qca: Add device_may_wakeup support

2021-03-10 Thread Venkata Lakshmi Narayana Gubba
Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index de36af6..73af901 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1571,6 +1571,20

[RFC PATCH v1] Bluetooth: hci_qca: Add device_may_wakeup support

2021-03-10 Thread Venkata Lakshmi Narayana Gubba
Added device_may_wakeup() support. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index de36af6..73af901 100644 --- a/drivers/bluetooth

[PATCH v1] Bluetooth: hci_qca:Fixed issue during suspend

2021-02-05 Thread Venkata Lakshmi Narayana Gubba
If BT SoC is running with ROM FW then just return in qca_suspend function as ROM FW does not support in-band sleep. Fixes: 2be43abac5a8 ("Bluetooth: hci_qca: Wait for timeout during suspend") Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 12 ++

[PATCH v2] Bluetooth: hci_qca: check for SSR triggered flag while suspend

2021-02-02 Thread Venkata Lakshmi Narayana Gubba
Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 17a3859..ff2fb68 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth

[PATCH v1] Bluetooth: hci_qca: check for SSR triggered flag while suspend

2021-02-02 Thread Venkata Lakshmi Narayana Gubba
QCA_IBS_DISABLED flag will be set after memorydump started from controller.Currently qca_suspend() is waiting for SSR to complete based on flag QCA_IBS_DISABLED.Added to check for QCA_SSR_TRIGGERED flag too. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 3

[PATCH v1] Bluetooth: hci_qca: Wait for SSR completion during suspend

2020-12-30 Thread Venkata Lakshmi Narayana Gubba
meout during suspend") Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 4a96368..6ad4079 100644 --- a/drivers

[PATCH v4] Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC

2020-12-08 Thread Venkata Lakshmi Narayana Gubba
Add support to read FW build version from debugfs node. This info can be read from /sys/kernel/debug/bluetooth/hci0/firmware_info Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 54 +++ drivers/bluetooth/btqca.h | 1 + 2

[PATCH v3] Bluetooth: hci_qca: Add support to read FW build version for WCN3991 BTSoC

2020-12-03 Thread Venkata Lakshmi Narayana Gubba
Add support to read FW build version from debugfs node. This info can be read from /sys/kernel/debug/bluetooth/hci0/ibs/fw_build_info Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 48 + drivers/bluetooth/btqca.h

[PATCH v2] Bluetooth: Use NVM files based on SoC ID for WCN3991

2020-11-19 Thread Venkata Lakshmi Narayana Gubba
This change will allow to use different NVM file based on WCN3991 BT SoC ID.Need to use different NVM file based on fab location for WCN3991 BT SoC. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 36 drivers/bluetooth/btqca.h

[PATCH v2] Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC

2020-11-18 Thread Venkata Lakshmi Narayana Gubba
Add support to read FW build version for WCN3991 BTSoC Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 57 +++ drivers/bluetooth/btqca.h | 3 +++ 2 files changed, 60 insertions(+) diff --git a/drivers/bluetooth/btqca.c

[PATCH v1] Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC

2020-11-17 Thread Venkata Lakshmi Narayana Gubba
Add support to read FW build version for WCN3991 BTSoC Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 57 +++ drivers/bluetooth/btqca.h | 3 +++ 2 files changed, 60 insertions(+) diff --git a/drivers/bluetooth/btqca.c

[PATCH v1] Bluetooth: hci_qca: Handle spurious wakeup from SoC

2020-11-15 Thread Venkata Lakshmi Narayana Gubba
Added timer to handle spurious wakeup from SoC. Timer is started when wake indicator is received from SoC. Timer is restarted when valid data is received from SoC. Timer is stopped when sleep indicator is received from SoC. SSR is triggered upon timer expiry. Signed-off-by: Venkata Lakshmi

[PATCH v1] Bluetooth: Use NVM files based on SoC ID for WCN3991

2020-09-15 Thread Venkata Lakshmi Narayana Gubba
This change will allow to use different NVM file based on WCN3991 BT SoC ID.Need to use different NVM file based on fab location for WCN3991 BT SoC. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/btqca.c | 41 + drivers/bluetooth

[RESEND v1] arm64: dts: qcom: sc7180: Remove clock for bluetooth on SC7180 IDP board

2020-09-10 Thread Venkata Lakshmi Narayana Gubba
Removed voting for RPMH_RF_CLK2 which is not required as it is getting managed by BT SoC through SW_CTRL line. Signed-off-by: Venkata Lakshmi Narayana Gubba --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b

[RESEND v1 2/2] Bluetooth: hci_qca: Remove duplicate power off in proto close

2020-09-10 Thread Venkata Lakshmi Narayana Gubba
During serdev unregister, hdev->shutdown is called before proto close. Removing duplicates power OFF call. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/driv

[RESEND v1 0/2] Close UART port if NON_PERSISTENT_SETUP is set

2020-09-10 Thread Venkata Lakshmi Narayana Gubba
HCI_QUIRK_NON_PERSISTENT_SETUP is set by clearing HCI_UART_PROTO_READY proto flag. On next BT ON, UART port is opened if HCI_UART_PROTO_READY proto flag is cleared. Venkata Lakshmi Narayana Gubba (2): Bluetooth: hci_serdev: Close UART port if NON_PERSISTENT_SETUP is set Bluetooth: hci_qca: Remove duplicate

[RESEND v1 1/2] Bluetooth: hci_serdev: Close UART port if NON_PERSISTENT_SETUP is set

2020-09-10 Thread Venkata Lakshmi Narayana Gubba
HCI_QUIRK_NON_PERSISTENT_SETUP is set by clearing HCI_UART_PROTO_READY proto flag. On next BT ON, UART port is opened if HCI_UART_PROTO_READY proto flag is cleared. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_serdev.c | 36 +--- 1 file changed, 33

[PATCH v1] arm64: dts: qcom: sc7180: Remove clock for bluetooth on SC7180 IDP board

2020-09-02 Thread Venkata Lakshmi Narayana Gubba
Removed voting for RPMH_RF_CLK2 which is not required as it is getting managed by BT SoC through SW_CTRL line. Signed-off-by: Venkata Lakshmi Narayana Gubba --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b

[PATCH v1 2/2] Bluetooth: hci_qca: Remove duplicate power off in proto close

2020-09-01 Thread Venkata Lakshmi Narayana Gubba
During serdev unregister, hdev->shutdown is called before proto close. Removing duplicates power OFF call. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/driv

[PATCH v1 0/2] Close UART port if NON_PERSISTENT_SETUP is set

2020-09-01 Thread Venkata Lakshmi Narayana Gubba
HCI_QUIRK_NON_PERSISTENT_SETUP is set by clearing HCI_UART_PROTO_READY proto flag. On next BT ON, UART port is opened if HCI_UART_PROTO_READY proto flag is cleared. Venkata Lakshmi Narayana Gubba (2): Bluetooth: hci_serdev: Close UART port if NON_PERSISTENT_SETUP is set Bluetooth: hci_qca: Remove duplicate

[PATCH v1 1/2] Bluetooth: hci_serdev: Close UART port if NON_PERSISTENT_SETUP is set

2020-09-01 Thread Venkata Lakshmi Narayana Gubba
HCI_QUIRK_NON_PERSISTENT_SETUP is set by clearing HCI_UART_PROTO_READY proto flag. On next BT ON, UART port is opened if HCI_UART_PROTO_READY proto flag is cleared. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_serdev.c | 36 +--- 1 file changed, 33

[PATCH v1] Bluetooth: hci_qca: Stop collecting memdump again for command timeout during SSR

2020-07-28 Thread Venkata Lakshmi Narayana Gubba
y: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 3d13002..20e1ded 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c

[PATCH v1] Bluetooth: hci_qca: Bug fixes for SSR

2020-07-11 Thread Venkata Lakshmi Narayana Gubba
Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 7e39546..bfebefa 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers

[PATCH v2] Bluetooth: hci_qca: Bug fix during SSR timeout

2020-06-09 Thread Venkata Lakshmi Narayana Gubba
uring SSR") Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 28c34a1..f3fde99 100644 --- a/drivers

[PATCH v1] Bluetooth: hci_qca: Fix double free during SSR timeout

2020-06-04 Thread Venkata Lakshmi Narayana Gubba
Due to race conditions between qca_hw_error and qca_controller_memdump during SSR timeout,the same pointer is freed twice. Which results to double free error. Now a lock is acquired while SSR state moved to timeout. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c