From: Larry Finger <Larry.Finger@lwfinger.net>
To: 陈艳萍 <champion_chen@realsil.com.cn>, "Daniel Drake" <drake@endlessm.com>
Cc: "Marcel Holtmann" <marcel@holtmann.org>,
"Gustavo F. Padovan" <gustavo@padovan.org>,
"Johan Hedberg" <johan.hedberg@gmail.com>,
"Linux Bluetooth mailing list" <linux-bluetooth@vger.kernel.org>,
许凯凯 <kyle_xu@realsil.com.cn>
Subject: Re: 答复: 答复: [PATCH v2] Bluetooth: btusb: Add Realtek 8723/8761 support
Date: Thu, 04 Sep 2014 11:42:13 -0500 [thread overview]
Message-ID: <54089665.1040302@lwfinger.net> (raw)
In-Reply-To: <54F70642BAB21D4498E1AA3EFE3D519A46010A1B@rsex2.realsil.com.cn>
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
On 09/03/2014 10:34 PM, 陈艳萍 wrote:
> Hi Daniel,
> Attached file is btusb driver add realtek Bluetooth support with firmware, we have tested under Ubuntu 14.04.
Champion,
Thanks for the new driver. I pushed the new code to
http://github.com/lwfinger/rtl8723au_bt/new. Using it, I was able to connect to
a BT mouse using an RTL8723AE module.
Your version had a few compilation warnings, some of which were due to using a
64-bit system. A patch file to fix those is attached.
One other problem is that the rar file contains a file named rlt8723a_fw. I am
sure that you should rename that to rtl8723a_fw.
Larry
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 2766 bytes --]
--- a/btusb.c 2014-09-03 11:06:46.000000000 -0500
+++ b/btusb.c 2014-09-04 09:46:49.639096299 -0500
@@ -718,7 +718,7 @@ static int btusb_open(struct hci_dev *hd
if (test_and_set_bit(HCI_RUNNING, &hdev->flags))
goto done;
- BT_DBG(" %s test_and_set :hdev->flags = 0x%x \n",__func__,hdev->flags);
+ BT_DBG(" %s test_and_set :hdev->flags = 0x%x \n",__func__, (int)hdev->flags);
if (test_and_set_bit(BTUSB_INTR_RUNNING, &data->flags))
goto done;
@@ -737,7 +737,7 @@ static int btusb_open(struct hci_dev *hd
btusb_submit_bulk_urb(hdev, GFP_KERNEL);
done:
- BT_DBG(" %s done :hdev->flags = 0x%x \n",__func__,hdev->flags);
+ BT_DBG(" %s done :hdev->flags = 0x%x \n",__func__, (int)hdev->flags);
usb_autopm_put_interface(data->intf);
return 0;
@@ -806,6 +806,7 @@ static int btusb_send_frame(struct hci_d
struct urb *urb;
unsigned int pipe;
int err;
+ u16 *opcode;
//BT_DBG("%s", hdev->name);
//BT_DBG("%s hdev->flags=0x%x",__func__,hdev->flags);
@@ -837,7 +838,7 @@ static int btusb_send_frame(struct hci_d
pipe = usb_sndctrlpipe(data->udev, 0x00);
- u16 *opcode = (u16*)(skb->data);
+ opcode = (u16*)(skb->data);
// BT_DBG("dr->wLength =%d,opcode=0x%04x",dr->wLength,*opcode);
usb_fill_control_urb(urb, data->udev, pipe, (void *) dr,
skb->data, skb->len, btusb_tx_complete, skb);
@@ -1466,7 +1467,7 @@ static int btusb_setup_rtl_get_oldfw( co
BT_INFO("%s", __func__);
/*check file length*/
if(fw->size<8){
- BT_ERR("%s: file size %d error", __func__,fw->size);
+ BT_ERR("%s: file size %d error", __func__, (int)fw->size);
return -1;
}
/*check signature*/
@@ -1527,7 +1528,7 @@ static int btusb_setup_rtl_get_newfw ( s
struct sk_buff *skb;
uint16_t rom_ver;
- uint8_t *temp;
+ const uint8_t *temp;
uint8_t opcode,len;
uint8_t data;
struct rtk_epatch *patch_info = NULL;
@@ -1561,7 +1562,7 @@ static int btusb_setup_rtl_get_newfw ( s
/*check file length*/
if(fw->size<20){
- BT_ERR("%s: file size %d error", __func__,fw->size);
+ BT_ERR("%s: file size %d error", __func__, (int)fw->size);
return -1;
}
/*check signature*/
@@ -1686,7 +1687,7 @@ static int btusb_setup_rtl_patching(stru
return -EIO;
}
- evt_para = (struct hci_rp_read_local_version *)skb->data;
+ evt_para = (struct download_rp *)skb->data;
if (evt_para->status) {
BT_ERR("Realtek patch event failed (%02x)",evt_para->status);
kfree_skb(skb);
@@ -1768,7 +1769,8 @@ static int btusb_setup_rtl(struct hci_de
fwname, ret);
return ret;
}
- BT_DBG("%s fw->data=%p fw->size= %d ",__func__,fw->data,fw->size);
+ BT_DBG("%s fw->data=%p fw->size= %d ", __func__, fw->data,
+ (int)fw->size);
/*For 8723a, use old style patch*/
if (lmp_version== ROM_LMP_8723A)
next prev parent reply other threads:[~2014-09-04 16:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 12:47 [PATCH v2] Bluetooth: btusb: Add Realtek 8723/8761 support Daniel Drake
2014-07-01 13:41 ` Marcel Holtmann
2014-07-01 14:18 ` Daniel Drake
2014-07-01 15:18 ` Larry Finger
2014-07-01 15:27 ` Marcel Holtmann
2014-07-03 9:28 ` 答复: " 陈艳萍
2014-07-03 18:12 ` Marcel Holtmann
2014-07-04 10:11 ` 答复: " 陈艳萍
2014-07-08 7:57 ` Daniel Drake
2014-07-11 8:44 ` 答复: " 陈艳萍
2014-07-11 9:11 ` Daniel Drake
2014-07-11 9:58 ` 答复: " 陈艳萍
2014-07-11 11:19 ` Marcel Holtmann
2014-09-04 3:34 ` 答复: 答复: " 陈艳萍
2014-09-04 12:34 ` Daniel Drake
2014-09-04 16:42 ` Larry Finger [this message]
2014-09-05 3:30 ` 答复: " 陈艳萍
2014-09-05 7:56 ` Johan Hedberg
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=54089665.1040302@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=champion_chen@realsil.com.cn \
--cc=drake@endlessm.com \
--cc=gustavo@padovan.org \
--cc=johan.hedberg@gmail.com \
--cc=kyle_xu@realsil.com.cn \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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.