From f7859e861fa4c22542766ac791a4c6f4a118a04b Mon Sep 17 00:00:00 2001 From: Piotr Szczepanik Date: Sat, 27 Jun 2020 12:13:15 +0200 Subject: [PATCH] Ignore BCM4345 and derivatives which are UART based in btsdio (#2068) --- .../general-btsdio-ignore-uart-devs.patch | 18 ++++++++++++++++++ .../general-btsdio-ignore-uart-devs.patch | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 patch/kernel/rockchip64-current/general-btsdio-ignore-uart-devs.patch create mode 100644 patch/kernel/rockchip64-dev/general-btsdio-ignore-uart-devs.patch diff --git a/patch/kernel/rockchip64-current/general-btsdio-ignore-uart-devs.patch b/patch/kernel/rockchip64-current/general-btsdio-ignore-uart-devs.patch new file mode 100644 index 0000000000..91921a5d6d --- /dev/null +++ b/patch/kernel/rockchip64-current/general-btsdio-ignore-uart-devs.patch @@ -0,0 +1,18 @@ +Some UART BT devices wrongly present themselves as SDIO - probably +because their WiFi counterparts are SDIO based. +This leads to creating a non functional fantom hci0 device. + +This happens with AP6256 seen on both ROCK Pi 4 and OrangePi 4. + +diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c +index fd9571d5f..26b16dd11 100644 +--- a/drivers/bluetooth/btsdio.c ++++ b/drivers/bluetooth/btsdio.c +@@ -286,6 +286,7 @@ static int btsdio_probe(struct sdio_func *func, + switch (func->device) { + case SDIO_DEVICE_ID_BROADCOM_43341: + case SDIO_DEVICE_ID_BROADCOM_43430: ++ case SDIO_DEVICE_ID_BROADCOM_4345: + case SDIO_DEVICE_ID_BROADCOM_4356: + return -ENODEV; + } diff --git a/patch/kernel/rockchip64-dev/general-btsdio-ignore-uart-devs.patch b/patch/kernel/rockchip64-dev/general-btsdio-ignore-uart-devs.patch new file mode 100644 index 0000000000..8cd3deac91 --- /dev/null +++ b/patch/kernel/rockchip64-dev/general-btsdio-ignore-uart-devs.patch @@ -0,0 +1,18 @@ +Some UART BT devices wrongly present themselves as SDIO - probably +because their WiFi counterparts are SDIO based. +This leads to creating a non functional fantom hci0 device. + +This happens with AP6256 seen on both ROCK Pi 4 and OrangePi 4. + +diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c +index 199e8f7d4..2edb53bfe 100644 +--- a/drivers/bluetooth/btsdio.c ++++ b/drivers/bluetooth/btsdio.c +@@ -295,6 +295,7 @@ static int btsdio_probe(struct sdio_func *func, + switch (func->device) { + case SDIO_DEVICE_ID_BROADCOM_43341: + case SDIO_DEVICE_ID_BROADCOM_43430: ++ case SDIO_DEVICE_ID_BROADCOM_4345: + case SDIO_DEVICE_ID_BROADCOM_4356: + return -ENODEV; + }