From: Frederic Danis <frederic.danis@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 5/7] Bluetooth: btusb: Use btbcm_setup_post()
Date: Fri, 10 Apr 2015 15:37:44 +0200 [thread overview]
Message-ID: <1428673066-1349-5-git-send-email-frederic.danis@linux.intel.com> (raw)
In-Reply-To: <1428673066-1349-1-git-send-email-frederic.danis@linux.intel.com>
Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
---
drivers/bluetooth/btusb.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index de7b236..25d490d 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1309,6 +1309,22 @@ static int btusb_setup_bcm92035(struct hci_dev *hdev)
return 0;
}
+#ifdef CONFIG_BT_HCIBTUSB_BCM
+static int btusb_setup_bcm(struct hci_dev *hdev)
+{
+ int err;
+
+ err = btbcm_setup_patchram(hdev);
+ /* If there is no firmware (-ENOENT), discard the error and continue */
+ if (err == -ENOENT)
+ return 0;
+
+ err = btbcm_setup_post(hdev);
+
+ return err;
+}
+#endif
+
static int btusb_setup_csr(struct hci_dev *hdev)
{
struct hci_rp_read_local_version *rp;
@@ -2730,7 +2746,7 @@ static int btusb_probe(struct usb_interface *intf,
#ifdef CONFIG_BT_HCIBTUSB_BCM
if (id->driver_info & BTUSB_BCM_PATCHRAM) {
- hdev->setup = btbcm_setup_patchram;
+ hdev->setup = btusb_setup_bcm;
hdev->set_bdaddr = btbcm_set_bdaddr;
}
--
1.9.1
next prev parent reply other threads:[~2015-04-10 13:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 13:37 [PATCH 1/7] Bluetooth: btbcm: Add BCM4324B3 UART device Frederic Danis
2015-04-10 13:37 ` [PATCH 2/7] Bluetooth: hci_uart: Add HCIUARTSETBAUDRATE ioctl Frederic Danis
2015-04-10 15:24 ` Peter Hurley
2015-04-10 18:20 ` Marcel Holtmann
2015-04-10 19:05 ` Peter Hurley
2015-04-29 15:06 ` Frederic Danis
2015-04-10 13:37 ` [PATCH 3/7] Bluetooth: hci_uart: Support final speed during setup Frederic Danis
2015-04-10 19:05 ` Marcel Holtmann
2015-04-10 13:37 ` [PATCH 4/7] Bluetooth: btbcm: Split setup() function Frederic Danis
2015-04-10 20:12 ` Marcel Holtmann
2015-04-10 13:37 ` Frederic Danis [this message]
2015-04-10 13:37 ` [PATCH 6/7] Bluetooth: hci_uart: Use btbcm_setup_post() Frederic Danis
2015-04-10 13:37 ` [PATCH 7/7] Bluetooth: btbcm: Add bcm_set_baudrate() Frederic Danis
2015-04-10 20:19 ` Marcel Holtmann
2015-04-10 21:44 ` Peter Hurley
2015-04-10 21:57 ` Marcel Holtmann
2015-04-29 14:30 ` Frederic Danis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1428673066-1349-5-git-send-email-frederic.danis@linux.intel.com \
--to=frederic.danis@linux.intel.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.