From: Frederic Danis <frederic.danis@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Subject: [RFC 0/5] Move HCI UART vendor specific setup to kernel
Date: Thu, 2 Apr 2015 16:37:31 +0200 [thread overview]
Message-ID: <1427985456-31536-1-git-send-email-frederic.danis@linux.intel.com> (raw)
This is a proposal to move the vendor specific setup (firmware loading and
final speed setup) to the kernel.
This will allow vendor specific setup function to use the HCI protocols already
implemented in kernel.
This adds 2 new IOCTLs (HCIUARTSETDEVTYPE and HCIUARTSETBAUDRATE) to be able to
select vendor specific setup function and final baudrate to use.
User space application in charge of attaching Bluetooth UART device will have to
call them before changing the proto to use (HCIUARTSETPROTO).
UART baud rate setup needs to set tty_set_termios() publicly available
(partially reverting patch "tty: Remove external interface for tty_set_termios()"
from Peter Hurley 2015-01-25 SHA1 632f32e2107).
A first work is provided based on Broadcom chip integrated in Asus T100.
Future: A third IOCTL (HCIUARTLISTDEVTYPE) can be added to allow user space
application to list supported Bluetooth device types by kernel.
Frederic Danis (5):
Bluetooth: hci_uart: Add HCIUARTSETDEVTYPE ioctl
Bluetooth: hci_uart: Add BCM specific setup function
Bluetooth: hci_uart: Add HCIUARTSETBAUDRATE ioctl
tty: Re-add external interface for tty_set_termios()
Bluetooth: hci_uart: Add BCM specific UART speed management
drivers/bluetooth/Kconfig | 10 ++
drivers/bluetooth/Makefile | 1 +
drivers/bluetooth/hci_bcm.c | 351 ++++++++++++++++++++++++++++++++++++++++++
drivers/bluetooth/hci_ldisc.c | 59 +++++++
drivers/bluetooth/hci_uart.h | 10 ++
drivers/tty/tty_ioctl.c | 3 +-
include/linux/tty.h | 1 +
7 files changed, 434 insertions(+), 1 deletion(-)
create mode 100644 drivers/bluetooth/hci_bcm.c
--
1.9.1
next reply other threads:[~2015-04-02 14:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 14:37 Frederic Danis [this message]
2015-04-02 14:37 ` [RFC 1/5] Bluetooth: hci_uart: Add HCIUARTSETDEVTYPE ioctl Frederic Danis
2015-04-02 14:57 ` Marcel Holtmann
2015-04-02 14:37 ` [RFC 2/5] Bluetooth: hci_uart: Add BCM specific setup function Frederic Danis
2015-04-02 14:37 ` [RFC 3/5] Bluetooth: hci_uart: Add HCIUARTSETBAUDRATE ioctl Frederic Danis
2015-04-02 15:12 ` Marcel Holtmann
2015-04-03 10:54 ` Peter Hurley
2015-04-03 12:49 ` Frederic Danis
2015-04-03 13:45 ` Peter Hurley
2015-04-03 13:56 ` Peter Hurley
2015-04-03 14:18 ` Loic Poulain
2015-04-03 15:45 ` Peter Hurley
2015-04-03 17:39 ` Marcel Holtmann
2015-04-04 23:05 ` Peter Hurley
2015-04-04 23:35 ` Marcel Holtmann
2015-04-05 1:22 ` Peter Hurley
2015-04-05 2:29 ` Marcel Holtmann
2015-04-10 12:07 ` Peter Hurley
2015-04-10 16:07 ` Marcel Holtmann
2015-04-10 16:45 ` Peter Hurley
2015-04-10 16:58 ` Marcel Holtmann
2015-04-02 14:37 ` [RFC 4/5] tty: Re-add external interface for tty_set_termios() Frederic Danis
2015-04-02 15:08 ` Marcel Holtmann
2015-04-02 14:37 ` [RFC 5/5] Bluetooth: hci_uart: Add BCM specific UART speed management Frederic Danis
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=1427985456-31536-1-git-send-email-frederic.danis@linux.intel.com \
--to=frederic.danis@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.