You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.0 KiB

  1. From e145c9621f976063e5c573db1f2053d906f63427 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 16 Feb 2016 16:39:09 +0000
  4. Subject: [PATCH 2/4] bcm43xx: The UART speed must be reset after the firmware
  5. download
  6. ---
  7. tools/hciattach_bcm43xx.c | 6 ++----
  8. 1 file changed, 2 insertions(+), 4 deletions(-)
  9. Index: bluez-5.51/tools/hciattach_bcm43xx.c
  10. ===================================================================
  11. --- bluez-5.51.orig/tools/hciattach_bcm43xx.c
  12. +++ bluez-5.51/tools/hciattach_bcm43xx.c
  13. @@ -367,11 +367,8 @@ int bcm43xx_init(int fd, int def_speed,
  14. return -1;
  15. if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) {
  16. - fprintf(stderr, "Patch not found, continue anyway\n");
  17. + fprintf(stderr, "Patch not found for %s, continue anyway\n", chip_name);
  18. } else {
  19. - if (bcm43xx_set_speed(fd, ti, speed))
  20. - return -1;
  21. -
  22. if (bcm43xx_load_firmware(fd, fw_path))
  23. return -1;
  24. @@ -381,6 +378,7 @@ int bcm43xx_init(int fd, int def_speed,
  25. return -1;
  26. }
  27. + sleep(1);
  28. if (bcm43xx_reset(fd))
  29. return -1;
  30. }