linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jérôme de Bretagne" <jerome.debretagne@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: btattach: auto triggering at boot time by Linux distributions
Date: Mon, 05 Sep 2016 23:40:20 +0200	[thread overview]
Message-ID: <1473111620.4063.29.camel@gmail.com> (raw)
In-Reply-To: <72B34103-D15B-463B-B63B-8DD3CE99D712@holtmann.org>

Hi Marcel,

> the real evolution would be that we get a serial bus (as discussed a
> few weeks ago) which then the UART kernel drivers can enumerate its
> devices on.

I've read this discussion, thanks for the pointer, and I've seen the
latest patch set proposal from Rob Herring reusing the existing serio
bus. 

If I understood correctly, you would like to stop exposing /dev/ttyX
for Bluetooth UART drivers in the long run. Would it mean that the
user-space btattach will then be deprecated and the firmware loading
will be moved into the kernel itself? Or another approach instead?

> Until then, you need an userspace part that triggers btattach with
> the right hardware id on the right /dev/ttySx device node as soon as
> it becomes available. So that means udev rules.

Great, I will investigate the udev rules direction.

>  However the problem is and always has been to figure out what
> hardware is behind what /dev/ttySx. If you are lucky it is part of
> ACPI tables or DT. If you are unlucky you need a DT overlay or
> hardcode it.

I faced that precise limitation when I was trying to find out what was
the chipset ACPI ID on the ThinkPad 8 tablet, to guess which btattach
parameter to use. And I don't remember finding it in the ACPI tables :(

I fear I will have to hardcode it to get started, and then investigate
the usage of a DT overlay in a second step.

Regards,
Jérôme

  reply	other threads:[~2016-09-05 21:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-04 17:10 btattach: auto triggering at boot time by Linux distributions Jérôme de Bretagne
2016-09-04 19:30 ` Marcel Holtmann
2016-09-05 21:40   ` Jérôme de Bretagne [this message]
2016-09-05 22:31     ` Marcel Holtmann
2016-09-06 21:35       ` Jérôme de Bretagne
2016-09-06 21:41       ` Jérôme de Bretagne
2016-09-07 21:25   ` Jérôme de Bretagne
2016-09-07 22:59     ` Marcel Holtmann
2016-09-08 22:03       ` Jérôme de Bretagne
2016-09-12  7:29         ` Marcel Holtmann
2016-09-12 20:42           ` Jérôme de Bretagne
2016-09-12 22:12             ` Jérôme de Bretagne
2016-09-14 21:03               ` Timing-related issue when loading the BT firmware on Broadcom Wi+Fi & BT combo chips (was: btattach: auto triggering at boot time by Linux distributions) Jérôme de Bretagne

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=1473111620.4063.29.camel@gmail.com \
    --to=jerome.debretagne@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --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).