linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Alain Michaud <alainm@chromium.org>,
	ChromeOS Bluetooth Upstreaming 
	<chromeos-bluetooth-upstreaming@chromium.org>,
	Bluez mailing list <linux-bluetooth@vger.kernel.org>
Subject: Re: [BlueZ PATCH v4 1/5] mgmt: Update docs for Add Device
Date: Wed, 25 Mar 2020 14:49:57 -0700	[thread overview]
Message-ID: <CANFp7mXyY9GrTy9G=9k8yoDKx6_A9P-_AB2cCr0EvdsJi_MWiA@mail.gmail.com> (raw)
In-Reply-To: <E2FD0076-97EC-4CF6-B8D6-D7E4087459F6@holtmann.org>

On Wed, Mar 25, 2020 at 2:25 PM Marcel Holtmann <marcel@holtmann.org> wrote:
>
> Hi Abhishek,
>
> > Update the docs for Add Device with information on flags mask and value.
> > Add information on the Wakeable flag that can be set to allow the device
> > to wake the system from suspend.
> > ---
> >
> > Changes in v4:
> > * Newly added support in Add Device for flags
> >
> > Changes in v3: None
> > Changes in v2: None
> >
> > doc/mgmt-api.txt | 12 ++++++++++++
> > 1 file changed, 12 insertions(+)
> >
> > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
> > index 27a41f334..e99c23710 100644
> > --- a/doc/mgmt-api.txt
> > +++ b/doc/mgmt-api.txt
> > @@ -1997,6 +1997,8 @@ Add Device Command
> >       Command Parameters:     Address (6 Octets)
> >                               Address_Type (1 Octet)
> >                               Action (1 Octet)
> > +                             Flags Mask (1 Octet)
> > +                             Flags Value (1 Octet)
>
> so we can actually not do that. This is not backwards compatible since the current kernel version have a strict size check for the command parameter size of Add Device.
>
> Is there a problem to just introduce action 3 as I mentioned before?

How does one mark the device as not wake capable? (if 0x3 means mark
the device as wake capable, should we add 0x4 meaning mark the device
as not wake capable)
Does a device need to have been already added to be marked wake
capable? (Answer should probably be no)

If you're ok with adding new actions 0x3 and 0x4 and making them not
imply 0x1 as well (LE always sets 0x2 so overwriting the value doesn't
make sense), I think that will work.

>
> Regards
>
> Marcel
>

  reply	other threads:[~2020-03-25 21:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-20  1:50 [BlueZ PATCH v4 0/5] device: Allow devices to be marked as wake capable Abhishek Pandit-Subedi
2020-03-20  1:50 ` [BlueZ PATCH v4 1/5] mgmt: Update docs for Add Device Abhishek Pandit-Subedi
2020-03-25 19:57   ` Luiz Augusto von Dentz
2020-03-25 21:25   ` Marcel Holtmann
2020-03-25 21:49     ` Abhishek Pandit-Subedi [this message]
2020-03-20  1:50 ` [BlueZ PATCH v4 2/5] device: Support marking a device with wake allowed Abhishek Pandit-Subedi
2020-03-25 19:54   ` Luiz Augusto von Dentz
2020-03-25 20:20     ` Abhishek Pandit-Subedi
2020-03-20  1:50 ` [BlueZ PATCH v4 3/5] client: Display wake allowed property with info Abhishek Pandit-Subedi
2020-03-20  1:50 ` [BlueZ PATCH v4 4/5] doc/device-api: Add WakeAllowed Abhishek Pandit-Subedi
2020-03-20  1:50 ` [BlueZ PATCH v4 5/5] input: Make HID devices support wake Abhishek Pandit-Subedi

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='CANFp7mXyY9GrTy9G=9k8yoDKx6_A9P-_AB2cCr0EvdsJi_MWiA@mail.gmail.com' \
    --to=abhishekpandit@chromium.org \
    --cc=alainm@chromium.org \
    --cc=chromeos-bluetooth-upstreaming@chromium.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --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).