From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A9D0C433DF for ; Mon, 3 Aug 2020 02:56:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F50C2076B for ; Mon, 3 Aug 2020 02:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbgHCC4D (ORCPT ); Sun, 2 Aug 2020 22:56:03 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45734 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbgHCC4D (ORCPT ); Sun, 2 Aug 2020 22:56:03 -0400 Received: from [114.252.213.24] (helo=[192.168.2.106]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k2Qdt-0006Pd-Dl; Mon, 03 Aug 2020 02:56:01 +0000 Subject: Re: [PATCH] Bluetooth: btusb: Add a module parameter ignore_id for debugging To: Marcel Holtmann Cc: Bluetooth Kernel Mailing List , Johan Hedberg References: <20200802042138.9149-1-hui.wang@canonical.com> <432B3E10-052D-4DCB-84A4-B239D218D4E5@holtmann.org> From: Hui Wang Message-ID: <8c625767-7211-2b41-7673-33e641c2924e@canonical.com> Date: Mon, 3 Aug 2020 10:55:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <432B3E10-052D-4DCB-84A4-B239D218D4E5@holtmann.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 2020/8/2 下午10:58, Marcel Holtmann wrote: > Hi Hui, > >> There is always an on-board usb bluetooth hci on the laptops, if >> the bluetooth function doesn't work well like a bt headset can't work >> with HSP/HFP mode, we often plug an external usb BT hci to verify if >> that headset could work with the exteral BT hci or not, in this >> situation, there will be 2 hcis (hci0 and hci1) in the system, and >> so far, the gnome can't handle the hci1 well so we met lots of >> problems when debugging with hci1 under gnome. >> >> After adding this new module parameter, we could ban the on-board >> usb hci by putting btusb.ignore_id=idVendor,idProduct to the bootargs, >> then the external usb hci will be hci0 and there is only one hci >> in the system. We could easily debug with the external usb bluetooth >> hci after this change. >> >> Signed-off-by: Hui Wang >> --- >> drivers/bluetooth/btusb.c | 11 +++++++++++ >> 1 file changed, 11 insertions(+) > please use this instead. > > echo “vvvv pppp 0 08fd 0002" > /sys/bus/usb/drivers/foo/new_id Thanks,  but to run the command above,  the system should boot up first.  After the system boot up, the btusb is already loaded and and the on-board hci is already driven by btusb. looks like it is too late to run that command for on-board hci. Thanks, Hui. > > Regards > > Marcel >