aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-05-31 11:38:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-31 13:02:18 +0000
commit2cbaf6f72fc5dfe48acefb19bb242de454880363 (patch)
treefc54b40eaebc302a435fff9350372eee7b0a2d3e /main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
parent4d6d437949cc1ed7e2bd4f4fbc6033c861a9058c (diff)
downloadaports-2cbaf6f72fc5dfe48acefb19bb242de454880363.tar.bz2
aports-2cbaf6f72fc5dfe48acefb19bb242de454880363.tar.xz
main/bluez: version upgrade and patches for bcm43xx
Upgrades bluez from version 5.39 to 5.40 and adds patches from the Raspberry Pi Foundation to support the bcm43xx chip on the RPi3.
Diffstat (limited to 'main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch')
-rw-r--r--main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch b/main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
new file mode 100644
index 0000000000..a221861d2c
--- /dev/null
+++ b/main/bluez/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
@@ -0,0 +1,33 @@
+From e145c9621f976063e5c573db1f2053d906f63427 Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.org>
+Date: Tue, 16 Feb 2016 16:39:09 +0000
+Subject: [PATCH 2/4] bcm43xx: The UART speed must be reset after the firmware
+ download
+
+---
+ tools/hciattach_bcm43xx.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+--- a/tools/hciattach_bcm43xx.c
++++ b/tools/hciattach_bcm43xx.c
+@@ -366,11 +366,8 @@ int bcm43xx_init(int fd, int def_speed,
+ return -1;
+
+ if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) {
+- fprintf(stderr, "Patch not found, continue anyway\n");
++ fprintf(stderr, "Patch not found for %s, continue anyway\n", chip_name);
+ } else {
+- if (bcm43xx_set_speed(fd, ti, speed))
+- return -1;
+-
+ if (bcm43xx_load_firmware(fd, fw_path))
+ return -1;
+
+@@ -380,6 +377,7 @@ int bcm43xx_init(int fd, int def_speed,
+ return -1;
+ }
+
++ sleep(1);
+ if (bcm43xx_reset(fd))
+ return -1;
+ }