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.

33 lines
939 B

  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. --- a/tools/hciattach_bcm43xx.c
  10. +++ b/tools/hciattach_bcm43xx.c
  11. @@ -354,11 +354,8 @@ int bcm43xx_init(int fd, int def_speed,
  12. return -1;
  13. if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) {
  14. - fprintf(stderr, "Patch not found, continue anyway\n");
  15. + fprintf(stderr, "Patch not found for %s, continue anyway\n", chip_name);
  16. } else {
  17. - if (bcm43xx_set_speed(fd, ti, speed))
  18. - return -1;
  19. -
  20. if (bcm43xx_load_firmware(fd, fw_path))
  21. return -1;
  22. @@ -368,6 +365,7 @@ int bcm43xx_init(int fd, int def_speed,
  23. return -1;
  24. }
  25. + sleep(1);
  26. if (bcm43xx_reset(fd))
  27. return -1;
  28. }