Received: by 10.192.165.148 with SMTP id m20csp772993imm; Wed, 9 May 2018 23:46:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpAlpcZeMrZ1uFDd3ixfjS2sdTAP6oUI2qEHV6wwWTkfXOr9Swfejf/CuEAv0bON6NqZVlW X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr218858plp.10.1525934782115; Wed, 09 May 2018 23:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525934782; cv=none; d=google.com; s=arc-20160816; b=DXa9MQfSZyMijrPlBkmnaVWzfKtxRJWMKAfwo09aOSJEJ7vwuS4OsJyaW+HHjNf2D5 UeiadFR2Vzw3jwCR9MDcg/PbVULpVArgt5/3SMpNqYK0W/Qcfm6DvE0DHsBua8flVvoX 8BZKSu4wtC+wKGEoneYaMNqOu9x6DmNyaUWjAbHMatViq48lJ0+0hq9LD/5iWnGimGRI SYogxFv12pdyZvL0Fkpxe/Pkt/pHcVnd3PbpQfKMBCIY6ZkbjaMascZHzKLmff7B8Vex 4VESxOA3bD1HUXKb+BTg2I4m84Ti/lgeeY5pZ4/jO3mBeOxI53Jbsu2GJYYMg8HnbQXZ HKFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Z1A0gJDTolFsULZQBQoIYgnVz2SvsDrDWNl3FgzF9Ng=; b=Ex5RXRd27Vug7MbmmixnxtE4iWvE5bnMGU9KI3nffIcXG5wEghlinpSkz8CV90pBjF 6l1Ay82ovs21iDTlp8KID1nq11WpkorQPInnY2yAZJfwwq8B0Uw4hcUT0fcE6FaQ5Mur a2OT1ZK3L+RPPjOjittdZ5QBjl0xdWC+5zYhpw4vkVJQieMfh/Wg9dOSdua5AL6gZ+oN Lx161RJ2H267bKZ68kPHWP7ygOuu1DzMaQEU3Yu4Z9v6JYY6c1vYSdT8Lv9ceDPBrORp aNCRHU0TKynpwXRgCiitdZsZH6LRzVO1+DaNjvBm7GlnRil7DUu44J12nJbcsNJQmChy 8UHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si105537pls.497.2018.05.09.23.46.07; Wed, 09 May 2018 23:46:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756699AbeEJGpx (ORCPT + 99 others); Thu, 10 May 2018 02:45:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:22757 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753497AbeEJGpv (ORCPT ); Thu, 10 May 2018 02:45:51 -0400 X-UUID: 3d9d347426f341eeb08de49e37d37b2b-20180510 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1266985705; Thu, 10 May 2018 14:45:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 10 May 2018 14:45:42 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 10 May 2018 14:45:41 +0800 Message-ID: <1525934741.18877.38.camel@mtkswgap22> Subject: Re: [PATCH v1 6/7] Bluetooth: hci_mediatek: Add protocol support for MediaTek serial devices From: Sean Wang To: Marcel Holtmann CC: Rob Herring , Mark Rutland , Johan Hedberg , devicetree , BlueZ development , linux-arm-kernel , , Date: Thu, 10 May 2018 14:45:41 +0800 In-Reply-To: <6033F916-F103-4F07-9912-695B5B49F30F@holtmann.org> References: <1525762084.14468.20.camel@mtkswgap22> <1525767775.18877.22.camel@mtkswgap22> <6033F916-F103-4F07-9912-695B5B49F30F@holtmann.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-05-08 at 13:18 +0200, Marcel Holtmann wrote: > Hi Sean, > > >>>>> + [ ... ] > > > > I'm happy to do with btmon. just the environment with buildroot the BT > > running on seems there's a missing support for btmon. I can start to use > > btmon once I change the environment to Debian. > > > >> So all the MTK vendor commands respond with a vendor event? Or are there some that do the standard command status/complete handling? > >> > > > > yes, mtk controller after mt7622 (included), its MTK vendors command > > (opcode 0xfc6f) always respond with a vendor event id 0xe4. And they > > don't do any standard status/complete handling. > then we need to figure out where the __hci_cmd_sync_ev causes a problem. Since normally that should just work for you. > Okay. I will look into more about the issue after I finished the v2 based on btuart driver. By the way, I've ported the btmon to my board, these vendor commands/events reported via btmon looks like below shown up > HCI Event: Unknown (0xe4) plen 5 [hci0] 11.213593 02 01 01 00 00 ..... > HCI Event: Unknown (0xe4) plen 5 [hci0] 11.214272 02 01 01 00 00 ..... < HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 11.214318 01 07 01 00 04 ..... > HCI Event: Unknown (0xe4) plen 5 [hci0] 11.214438 02 07 01 00 00 ..... < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 13.229379 01 06 02 00 00 01 ...... > HCI Event: Unknown (0xe4) plen 5 [hci0] 13.307729 02 06 01 00 00 ..... > > BTW, mtk controller before mt7622, such as mt7623, its MTK vendor > > command always go with completely specific format, not with hci format. > > What does that mean? Do you have an example? > what I meant is that these vendor commands and events applied on old SoCs prior to MT7622 always use completely proprietary format rather than any BT packet to setup the BT controller. for example: - vendor command 01 06 02 00 00 01 - vendor event 02 06 01 00 00 > Regards > > Marcel >