54 lines
1.4 KiB
Diff
54 lines
1.4 KiB
Diff
|
From 6fd81783091648fdb171a621f9991c9bddced057 Mon Sep 17 00:00:00 2001
|
||
|
From: Vasily Khoruzhick <anarsoul@gmail.com>
|
||
|
Date: Wed, 31 Oct 2018 20:07:41 -0700
|
||
|
Subject: [PATCH 192/323] Bluetooth: hci_h5: Add support for binding RTL8723BS
|
||
|
with device tree
|
||
|
|
||
|
RTL8723BS is often used in ARM boards, so add ability to bind it
|
||
|
using device tree.
|
||
|
|
||
|
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
|
||
|
---
|
||
|
drivers/bluetooth/hci_h5.c | 11 +++++++++++
|
||
|
1 file changed, 11 insertions(+)
|
||
|
|
||
|
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
|
||
|
index 19c4f8a79..14c9c200b 100644
|
||
|
--- a/drivers/bluetooth/hci_h5.c
|
||
|
+++ b/drivers/bluetooth/hci_h5.c
|
||
|
@@ -822,6 +822,9 @@ static int h5_serdev_probe(struct serdev_device *serdev)
|
||
|
return -ENODEV;
|
||
|
|
||
|
h5->vnd = (const struct h5_vnd *)data;
|
||
|
+
|
||
|
+ of_property_read_string(dev->of_node,
|
||
|
+ "firmware-postfix", &h5->id);
|
||
|
}
|
||
|
|
||
|
|
||
|
@@ -1013,6 +1016,12 @@ static struct h5_vnd rtl_vnd = {
|
||
|
.resume = h5_btrtl_resume,
|
||
|
.acpi_gpio_map = acpi_btrtl_gpios,
|
||
|
};
|
||
|
+
|
||
|
+static struct h5_vnd rtl_vnd_nosuspend = {
|
||
|
+ .setup = h5_btrtl_setup,
|
||
|
+ .open = h5_btrtl_open,
|
||
|
+ .close = h5_btrtl_close,
|
||
|
+};
|
||
|
#endif
|
||
|
|
||
|
#ifdef CONFIG_ACPI
|
||
|
@@ -1035,6 +1044,8 @@ static const struct of_device_id rtl_bluetooth_of_match[] = {
|
||
|
.data = (const void *)&rtl_vnd },
|
||
|
{ .compatible = "realtek,rtl8723bs-bt",
|
||
|
.data = (const void *)&rtl_vnd },
|
||
|
+ { .compatible = "realtek,rtl8723cs-bt",
|
||
|
+ .data = (const void *)&rtl_vnd_nosuspend },
|
||
|
#endif
|
||
|
{ },
|
||
|
};
|
||
|
--
|
||
|
2.34.0
|
||
|
|