public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Matt Witherspoon <spoon@vt.edu>
Cc: linux-bluetooth@vger.kernel.org, David Vrabel <david.vrabel@csr.com>
Subject: Re: Problems & crash with Bluecore6 and SDIO driver
Date: Mon, 27 Oct 2008 20:40:52 +0100	[thread overview]
Message-ID: <1225136452.7157.20.camel@californication> (raw)
In-Reply-To: <1225132303.4906090f12442@webmail.vt.edu>

Hi Mark,

> > Deep sleep control is done on a per-function basis so you need to write
> > 0x11 to disable deep sleep on function 1 (the bluetooth function).
> 
> Thanks for the response, David.
> 
> Applying Tomas' patch does indeed fix the crash.
> I put a sdio_f0_writeb(data->func, 0x11, 0xf0, NULL); in btsdio_open(). This
> register write does seem to have some effect. Without it, idle current was
> 0.6mA. With the write, idle current is around 2.5mA. However, the BC6 still
> will not respond to commands after being idle for several seconds. Or, it will
> respond but with bogus data (like a features bitfield of all 0x00s).
> 
> Then, I realized that if I run this command:
> hciconfig hci0 up ; bccmd psset -s psram -r 0x0229 0
> along with the register write, everything works great. I appear to have to do
> both: the register write and the PSKEY setting. One or the other alone is not
> sufficient.

the 0x0229 translates to PSKEY_DEEP_SLEEP_STATE if anybody wonders. So
for a full support of the BlueCore6 SDIO interface we would have to do a
little bit more work. I stopped looking into it since the only BlueCore6
that I have is an engineering release and I haven't checked it for a
while. Never got updated hardware. Hint hint ;)

> Does this seem correct to you? I can't see how btsdio could work on a BC6
> without following this process, unless I have a old bad firmware or something.

At the last BlueZ developer meeting, we discussed an init stage for all
Bluetooth drivers. The init stage then can be used to init hardware with
hardware specific details like PS settings or firmware download.

Regards

Marcel



  reply	other threads:[~2008-10-27 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 18:31 Problems & crash with Bluecore6 and SDIO driver Matt Witherspoon
2008-10-27 19:40 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-10-22  0:04 Matt Witherspoon
2008-10-22 11:20 ` David Vrabel

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=1225136452.7157.20.camel@californication \
    --to=marcel@holtmann.org \
    --cc=david.vrabel@csr.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=spoon@vt.edu \
    /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