Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Daniel Westerlund <dwesterl@cc.hut.fi>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Maemo6 MCE: skip first adapter_powered callback
Date: Thu, 24 Feb 2011 16:42:48 -0300	[thread overview]
Message-ID: <20110224194248.GA28774@jh-x301> (raw)
In-Reply-To: <AANLkTinzSuO8a87BuqAxakQS5=pd9zRd7zdmBasjXrxs@mail.gmail.com>

Hi Daniel,

> From: Daniel Orstadius <daniel.orstadius@nokia.com>
> Date: Thu, 24 Feb 2011 13:45:33 +0200
> Subject: [PATCH] Maemo6 MCE: skip first adapter_powered callback
> 
> The maemo6 MCE plugin should be used with the flag InitiallyPowered
> in main.conf set to 'true' so that BlueZ powers on the adapter
> and leaves it in that state when the daemon is started. The plugin
> will read the radio state from the MCE and set the state
> accordingly. The maemo6 plugin is a btd_adapter_driver and those
> drivers are loaded after BlueZ has read the BD address etc from the
> adapter.
> 
> This patch adds a boolean flag in the callback to ignore the initial
> powering on of the adapter by BlueZ, since it shouldn't be
> propagated to the MCE. With InitiallyPowered set to 'false' the
> adapter_powered callback is not called when the adapter is turned
> on at BlueZ startup, which is why this wasn't implemented before.
> ---
>  plugins/maemo6.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)

This patch has been pushed upstream. Thanks.

Johan

      reply	other threads:[~2011-02-24 19:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 12:27 [PATCH] Maemo6 MCE: skip first adapter_powered callback Daniel Örstadius
2011-02-24 19:42 ` Johan Hedberg [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=20110224194248.GA28774@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=dwesterl@cc.hut.fi \
    --cc=linux-bluetooth@vger.kernel.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