Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Eric Miao <eric.miao@canonical.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Add udev rule for Ralink WiFi+BT module w/ bccmd
Date: Mon, 19 Mar 2012 10:37:43 -0700	[thread overview]
Message-ID: <1332178663.14217.211.camel@aeonflux> (raw)
In-Reply-To: <1332132103-23374-1-git-send-email-eric.miao@canonical.com>

Hi Eric,

> Some Ralink WiFi + CSR BT module needs bluetooth radio to be
> turned on explicitly with bccmd by the following command:
> 
>   bccmd psset -r 0x028c 0x0001
> 
> The HCI will be probed successfully, but due to the default
> OFF state of the radio, no scan or connection can be made.
> This patch adds the udev rule so that once the HCI is up,
> udev will invoke bccmd with warm reset to turn on the radio.
> 
> [1] https://bugs.launchpad.net/bugs/781556
> [2] https://bugs.meego.com/show_bug.cgi?id=3498
> [3] http://ubuntuforums.org/showthread.php?t=1776108
> [4] http://ubuntuforums.org/showthread.php?t=1703941

why are we doing this in userspace? The btusb.c driver has the option
for pre-execution HCI commands queue. Why not use that one.

Also why -r. Meaning why do we need a warmreset? And where is the magic
0x028c PS key coming from? Does anybody actually know what it is doing?

Regards

Marcel



  reply	other threads:[~2012-03-19 17:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19  4:41 [PATCH] Add udev rule for Ralink WiFi+BT module w/ bccmd Eric Miao
2012-03-19 17:37 ` Marcel Holtmann [this message]
2012-03-20  1:55   ` Eric Miao
2012-03-20 14:36     ` Eric Miao

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=1332178663.14217.211.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=eric.miao@canonical.com \
    --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