* [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device.
@ 2011-02-11 23:19 Andrei Warkentin
2011-02-16 13:19 ` Gustavo F. Padovan
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Warkentin @ 2011-02-11 23:19 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
Dear List,
This depends on Dmitry Eremin-Solenikov's "Tty: add tty_struct->dev
pointer to corresponding device instance" patch,
which is in 2.6.37.
Thanks,
A
[-- Attachment #2: 0001-BlueZ-HCI_LDISC-Make-hci-a-child-of-the-correspondin.patch --]
[-- Type: text/x-diff, Size: 955 bytes --]
From 3ae2156afa420f3ba5cb73295037680bdca340f1 Mon Sep 17 00:00:00 2001
From: Andrei Warkentin <andreiw@motorola.com>
Date: Fri, 11 Feb 2011 17:59:52 -0600
Subject: [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device.
Makes /sys/class/bluetooth/hciX a symlink to
path under corresponding tty.
Change-Id: I297361c13c61e2ad82293030553d9f0653e1273a
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
---
drivers/bluetooth/hci_ldisc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index 17361ba..6a1b066 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -396,6 +396,7 @@ static int hci_uart_register_dev(struct hci_uart *hu)
hdev->flush = hci_uart_flush;
hdev->send = hci_uart_send_frame;
hdev->destruct = hci_uart_destruct;
+ hdev->parent = hu->tty->dev;
hdev->owner = THIS_MODULE;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device.
2011-02-11 23:19 [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device Andrei Warkentin
@ 2011-02-16 13:19 ` Gustavo F. Padovan
0 siblings, 0 replies; 2+ messages in thread
From: Gustavo F. Padovan @ 2011-02-16 13:19 UTC (permalink / raw)
To: Andrei Warkentin; +Cc: linux-bluetooth
Hi Andrei,
* Andrei Warkentin <andreiw@motorola.com> [2011-02-11 17:19:26 -0600]:
> Dear List,
>
> This depends on Dmitry Eremin-Solenikov's "Tty: add tty_struct->dev
> pointer to corresponding device instance" patch,
> which is in 2.6.37.
>
> Thanks,
> A
> From 3ae2156afa420f3ba5cb73295037680bdca340f1 Mon Sep 17 00:00:00 2001
> From: Andrei Warkentin <andreiw@motorola.com>
> Date: Fri, 11 Feb 2011 17:59:52 -0600
> Subject: [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device.
>
> Makes /sys/class/bluetooth/hciX a symlink to
> path under corresponding tty.
>
> Change-Id: I297361c13c61e2ad82293030553d9f0653e1273a
> Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
> ---
> drivers/bluetooth/hci_ldisc.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Patch has been applied.
--
Gustavo F. Padovan
http://profusion.mobi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-16 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 23:19 [PATCH] BlueZ: HCI_LDISC: Make hci a child of the corresponding tty device Andrei Warkentin
2011-02-16 13:19 ` Gustavo F. Padovan
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).