linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hui Wang <hui.wang@canonical.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: btusb: Add a parameter to load fw forcibly for Intel BT
Date: Fri, 5 Feb 2021 21:26:50 +0800	[thread overview]
Message-ID: <10c5e78c-3f07-2891-cbeb-7130ec5d7895@canonical.com> (raw)
In-Reply-To: <efdddc31-bf46-42e6-8edd-710835ed3f4b@canonical.com>



>>>
>>>     /* controller is already having an operational firmware */
>>> -    if (ver.fw_variant == 0x23)
>>> +    if (ver.fw_variant == 0x23) {
>>> +        if (force_load_fw) {
>>> +            btintel_reset_to_bootloader(hdev);
>>> +            force_load_fw = false;
>>> +            return -EAGAIN;
>>> +        }
>>> +        bt_dev_info(hdev, "already in operational mode, not load 
>>> fw. Set force_load_fw=1 to load fw forcibly");
>>>         goto finish;
>>> +    }
>> I don’t like this approach. I rather do this in a more generic way 
>> that resets the controller and puts it into boot loader support if 
>> support. We can use the experimental mgmt setting for this.
> OK, got it, will investigate it. Thanks.

Hi Marcel,

Do you mean use experimental features in the mgmt? Recently I read the 
mgmt exp_features related code, looks like the userspace tool btmgmt 
only supports 2 commands so far, they are expinfo and exp-debug, it 
looks like expinfo read some info from kernel, exp-debug set one bool 
value to kernel, but exp-debug sends the hard-coded uuid to kernel, my 
understanding is this could only set FEATURE_DEBUG. If i add a new 
feature like reset_controller_to_bootloader, I can't call it through 
expinfo or exp-debug.

And the kernel commit (cbbdfa6f3319 Bluetooth: Enable controller RPA 
resolution using Experimental feature) add a new feature, how to set 
this feature via expinfo and exp-debug or some userspace tool?

Thanks,

Hui.

>>
>> Regards
>>
>> Marcel
>>

      reply	other threads:[~2021-02-05 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30  5:27 [PATCH] Bluetooth: btusb: Add a parameter to load fw forcibly for Intel BT Hui Wang
2020-11-30  6:01 ` bluez.test.bot
2020-11-30 17:05 ` [PATCH] " Marcel Holtmann
2020-12-01  5:46   ` Hui Wang
2021-02-05 13:26     ` Hui Wang [this message]

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=10c5e78c-3f07-2891-cbeb-7130ec5d7895@canonical.com \
    --to=hui.wang@canonical.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).