![]() ![]() bt_dev_dbg(hdev, "Bluetooth Reset Successfully") btusb_mtk_uhw_reg_read(data, MTK_BT_MISC, &val) * Poll the register until reset is completed */ If (test_and_set_bit(BTUSB_HW_RESET_ACTIVE, &data->flags)) -2953,18 +2961,14 static void btusb_mtk_cmd_timeout(struct hci_dev *hdev)ītusb_mtk_uhw_reg_write(data, MTK_BT_SUBSYS_RST, 0) ītusb_mtk_uhw_reg_read(data, MTK_BT_SUBSYS_RST, &val) * It's MediaTek specific bluetooth reset mechanism via USB */ Struct btusb_data *data = hci_get_drvdata(hdev) Struct btusb_data *data = -2922,7 +2930,7 static void btusb_mtk_cmd_timeout(struct hci_dev *hdev) Static int btusb_mtk_setup(struct hci_dev *hdev) + btusb_mtk_uhw_reg_read(data, MTK_BT_MISC, &val) + struct btusb_data *data = hci_get_drvdata(hdev) +static u32 btusb_mtk_reset_done(struct hci_dev *hdev) Return btusb_mtk_reg_read(data, reg, id) Static void btusb_mtk_wmt_recv(struct urb -2733,6 +2731,16 static int btusb_mtk_id_get(struct btusb_data *data, u32 reg, u32 *id) +++ -2361,8 +2361,6 static int btusb_send_frame_intel(struct hci_dev *hdev, struct sk_buff *skb) ![]() ![]() V2: use 20ms as the unit to poll according to the requirement ofĭrivers/bluetooth/btusb.c | 32 ++++++++++++++++++-ġ file changed, 18 insertions(+), 14 deletions(-)ĭiff -git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c Which are contributed from Manish Mandlik Bluetooth: btintel: Add Intel devcoredump support Bluetooth: btusb: Add btusb devcoredump support ![]() Bluetooth: Add support for hci devcoredump The patch is built and tested on the top of the patches Use readx_poll_timeout instead of open coding to poll the hardware reset Linux-bluetooth, linux-mediatek, linux-kernel Ted.huang, Stella.Chang, Tom.Chou, steve.lee, jsiuda, frankgor,Ībhishekpandit, michaelfsun, abhishekpandit, mcchou, shawnku, ` (3 more replies) 0 siblings, 4 replies 9+ messages in threadĬc: sean.wang, Soul.Huang, YN.Chen, Leon.Yen, Eric-SY.Chang,ĭeren.Wu, km.lin, robin.chiu, Eddie.Chen, ch.yeh, posh.sun, 0:23 ` Bluetooth: btmtk: introduce btmtk reset work sean.wang Bluetooth: btusb: mediatek: use readx_poll_timeout instead of open coding All of help / color / mirror / Atom feed * Bluetooth: btusb: mediatek: use readx_poll_timeout instead of open coding 0:23 sean.wang ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |