From a8e6e7f9437f304f6dc81105e6ff1a41e1aa5385 Mon Sep 17 00:00:00 2001 From: priyankar Date: Thu, 15 Apr 2021 01:27:25 +0530 Subject: [PATCH] Add support for new HSP version This patch contains changes for adding support for new HSP SoC versions. Change-Id: I434bf4697152d0e6ad78d7ef5bd07c21bc98db0c Signed-off-by: priyankar --- drivers/bluetooth/bluetooth-power.c | 4 +++- drivers/bluetooth/btfm_slim_slave.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/bluetooth-power.c b/drivers/bluetooth/bluetooth-power.c index f2f3c9b3b6e1..f66ff5c3e34e 100644 --- a/drivers/bluetooth/bluetooth-power.c +++ b/drivers/bluetooth/bluetooth-power.c @@ -1149,7 +1149,9 @@ static long bt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) soc_id = chipset_version; if (soc_id == QCA_HSP_SOC_ID_0100 || soc_id == QCA_HSP_SOC_ID_0110 || - soc_id == QCA_HSP_SOC_ID_0200) { + soc_id == QCA_HSP_SOC_ID_0200 || + soc_id == QCA_HSP_SOC_ID_0210 || + soc_id == QCA_HSP_SOC_ID_1211) { ret = bt_disable_asd(); } } else { diff --git a/drivers/bluetooth/btfm_slim_slave.h b/drivers/bluetooth/btfm_slim_slave.h index 26fc8abae8a3..0dbdbfbcd4e6 100644 --- a/drivers/bluetooth/btfm_slim_slave.h +++ b/drivers/bluetooth/btfm_slim_slave.h @@ -110,6 +110,8 @@ enum { QCA_HSP_SOC_ID_0100 = 0x400C0100, QCA_HSP_SOC_ID_0110 = 0x400C0110, QCA_HSP_SOC_ID_0200 = 0x400C0200, + QCA_HSP_SOC_ID_0210 = 0x400C0210, + QCA_HSP_SOC_ID_1211 = 0x400C1211, }; /* Function Prototype */