public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ohad Ben-Cohen" <ohad@bencohen.org>
To: "Marcel Holtmann" <marcel@holtmann.org>
Cc: bluez-devel@lists.sourceforge.net
Subject: Re: [PATCH 2.6.21] Bluetooth: add support for TI's HCILL UART protocol
Date: Fri, 4 May 2007 16:30:06 +0300	[thread overview]
Message-ID: <bd5b16740705040630o58f22ddfi39b6399092c1677a@mail.gmail.com> (raw)
In-Reply-To: <1178261528.25425.38.camel@violet>

Hi Marcel,

On 5/4/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> please explain the usefulness of HCIUARTGETDEVICE to me.

Most of the initializing commands should be (and thus are) sent normally,
before the new device is added (and notification is sent to hcid).

But, there is one initialization command (deep sleep configuration),
which must be sent _after_ the HCILL protocol is set.

This command is signalling the device that it can start initiating deep sleep.
The device may immediate request to do so, so the HCILL protocol must
already be there to receive this request.

That's why I let hciattach do its HCIUARTSETPROTO, and only then
I send the remaining init commands.

But, at this stage, in order to send commands to the device,
I must use Bluez' sockets interface, and for that I must know the device
number (for hci_open_dev).

In order to be able to easily know the hci device number, I have
added HCIUARTGETDEVICE.

If there's a better way of knowing the hci device number please tell me.

> And the ll_dbg_data() has to go away. On LKML they discussing a generic
> hexdump function. I could accept the usage of that, but no crazy own
> debug routine in the kernel code.

Of course :)
I am aware of Randy's hexdumper, and once it will be merged I will make
use of it.

Thanks,
Ohad.

  reply	other threads:[~2007-05-04 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-30 15:40 [PATCH 2.6.21] Bluetooth: add support for TI's HCILL UART protocol Ohad Ben-Cohen
2007-05-04  6:52 ` [Bluez-devel] " Marcel Holtmann
2007-05-04 13:30   ` Ohad Ben-Cohen [this message]
2007-05-04 14:30     ` Marcel Holtmann

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=bd5b16740705040630o58f22ddfi39b6399092c1677a@mail.gmail.com \
    --to=ohad@bencohen.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --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