Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611154 > unrolled thread
| Started by | Sebastian Reichel <sre@kernel.org> |
|---|---|
| First post | 2017-03-28 18:10 +0200 |
| Last post | 2017-04-05 22:30 +0200 |
| Articles | 7 — 5 participants |
Back to article view | Back to linux.kernel
[PATCHv3 00/10] Nokia H4+ support Sebastian Reichel <sre@kernel.org> - 2017-03-28 18:10 +0200
[PATCHv3 07/10] Bluetooth: hci_serdev: do not open device in hci open Sebastian Reichel <sre@kernel.org> - 2017-03-28 18:10 +0200
Re: [PATCHv3 00/10] Nokia H4+ support Rob Herring <robh+dt@kernel.org> - 2017-03-29 23:20 +0200
Re: [PATCHv3 00/10] Nokia H4+ support Marcel Holtmann <marcel@holtmann.org> - 2017-03-29 23:40 +0200
Re: [PATCHv3 00/10] Nokia H4+ support Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-03-31 15:40 +0200
Re: [PATCHv3 00/10] Nokia H4+ support Rob Herring <robh+dt@kernel.org> - 2017-04-05 20:20 +0200
Re: [PATCHv3 00/10] Nokia H4+ support Pavel Machek <pavel@ucw.cz> - 2017-04-05 22:30 +0200
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-28 18:10 +0200 |
| Subject | [PATCHv3 00/10] Nokia H4+ support |
| Message-ID | <tq1QZ-1HW-3@gated-at.bofh.it> |
Hi, Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since they were queued by Tony. I also changed the patch order, so that the serdev patches come first. All of them have Acked-by from Rob, so I think it makes sense to merge them to serdev subsystem (now) and provide an immutable branch for the bluetooth subsystem. The patchset is based upon 4.11-rc1 and is also available from the following branch: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-n900.git/log/?h=nokia-bt-serdev-v3 -- Sebastian Rob Herring (1): Bluetooth: hci_uart: add serdev driver support library Sebastian Reichel (9): tty: serial: omap: add UPF_BOOT_AUTOCONF flag for DT init serdev: add serdev_device_wait_until_sent serdev: implement get/set tiocm serdev: add helpers for cts and rts handling Bluetooth: hci_uart: add support for word alignment Bluetooth: hci_serdev: do not open device in hci open Bluetooth: hci_serdev: allow modular drivers dt-bindings: net: bluetooth: Add nokia-bluetooth Bluetooth: add nokia driver .../devicetree/bindings/net/nokia-bluetooth.txt | 51 ++ drivers/bluetooth/Kconfig | 12 + drivers/bluetooth/Makefile | 3 + drivers/bluetooth/hci_h4.c | 17 + drivers/bluetooth/hci_ldisc.c | 5 + drivers/bluetooth/hci_nokia.c | 819 +++++++++++++++++++++ drivers/bluetooth/hci_serdev.c | 356 +++++++++ drivers/bluetooth/hci_uart.h | 7 + drivers/tty/serdev/core.c | 33 + drivers/tty/serdev/serdev-ttyport.c | 42 +- drivers/tty/serial/omap-serial.c | 3 + include/linux/serdev.h | 47 ++ 12 files changed, 1391 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/nokia-bluetooth.txt create mode 100644 drivers/bluetooth/hci_nokia.c create mode 100644 drivers/bluetooth/hci_serdev.c -- 2.11.0
[toc] | [next] | [standalone]
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-03-28 18:10 +0200 |
| Subject | [PATCHv3 07/10] Bluetooth: hci_serdev: do not open device in hci open |
| Message-ID | <tq1R1-1HW-53@gated-at.bofh.it> |
| In reply to | #1611154 |
The device driver may need to communicate with the UART
device while the Bluetooth device is closed (e.g. due
to interrupts).
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
drivers/bluetooth/hci_serdev.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
index f5ccb2c7ef92..3b8ac0ece3fb 100644
--- a/drivers/bluetooth/hci_serdev.c
+++ b/drivers/bluetooth/hci_serdev.c
@@ -104,13 +104,9 @@ static void hci_uart_write_work(struct work_struct *work)
/* Initialize device */
static int hci_uart_open(struct hci_dev *hdev)
{
- struct hci_uart *hu = hci_get_drvdata(hdev);
-
BT_DBG("%s %p", hdev->name, hdev);
- serdev_device_set_client_ops(hu->serdev, &hci_serdev_client_ops);
-
- return serdev_device_open(hu->serdev);
+ return 0;
}
/* Reset device */
@@ -136,15 +132,11 @@ static int hci_uart_flush(struct hci_dev *hdev)
/* Close device */
static int hci_uart_close(struct hci_dev *hdev)
{
- struct hci_uart *hu = hci_get_drvdata(hdev);
-
BT_DBG("hdev %p", hdev);
hci_uart_flush(hdev);
hdev->flush = NULL;
- serdev_device_close(hu->serdev);
-
return 0;
}
@@ -289,6 +281,8 @@ int hci_uart_register_device(struct hci_uart *hu,
BT_DBG("");
+ serdev_device_set_client_ops(hu->serdev, &hci_serdev_client_ops);
+
err = p->open(hu);
if (err)
return err;
--
2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2017-03-29 23:20 +0200 |
| Message-ID | <tqtax-4hp-5@gated-at.bofh.it> |
| In reply to | #1611154 |
On Tue, Mar 28, 2017 at 10:59 AM, Sebastian Reichel <sre@kernel.org> wrote: > Hi, > > Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from > Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since > they were queued by Tony. I also changed the patch order, so that the serdev > patches come first. All of them have Acked-by from Rob, so I think it makes > sense to merge them to serdev subsystem (now) and provide an immutable branch > for the bluetooth subsystem. Greg doesn't read cover letters generally and since the serdev patches are Cc rather than To him, he's probably not planning to pick them up. Rob
[toc] | [prev] | [next] | [standalone]
| From | Marcel Holtmann <marcel@holtmann.org> |
|---|---|
| Date | 2017-03-29 23:40 +0200 |
| Message-ID | <tqttV-4o9-47@gated-at.bofh.it> |
| In reply to | #1612348 |
Hi Rob, >> Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from >> Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since >> they were queued by Tony. I also changed the patch order, so that the serdev >> patches come first. All of them have Acked-by from Rob, so I think it makes >> sense to merge them to serdev subsystem (now) and provide an immutable branch >> for the bluetooth subsystem. > > Greg doesn't read cover letters generally and since the serdev patches > are Cc rather than To him, he's probably not planning to pick them up. I wonder actually if we should merge all of these via bluetooth-next tree with proper Ack from Greg. However it would be good to also get buy in from Dave for merging this ultimately through net-next. Regards Marcel
[toc] | [prev] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-03-31 15:40 +0200 |
| Message-ID | <tr4Wu-5cZ-25@gated-at.bofh.it> |
| In reply to | #1612398 |
On Wed, Mar 29, 2017 at 11:33:26PM +0200, Marcel Holtmann wrote:
> Hi Rob,
>
> >> Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from
> >> Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since
> >> they were queued by Tony. I also changed the patch order, so that the serdev
> >> patches come first. All of them have Acked-by from Rob, so I think it makes
> >> sense to merge them to serdev subsystem (now) and provide an immutable branch
> >> for the bluetooth subsystem.
> >
> > Greg doesn't read cover letters generally and since the serdev patches
> > are Cc rather than To him, he's probably not planning to pick them up.
>
> I wonder actually if we should merge all of these via bluetooth-next
> tree with proper Ack from Greg. However it would be good to also get
> buy in from Dave for merging this ultimately through net-next.
I don't really care where it goes. I can take the whole thing in my
tty/serial tree now if no one objects and I get an ack from the relevant
maintainers {hint...}
thanks,
greg k-h
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2017-04-05 20:20 +0200 |
| Message-ID | <tsXHc-66T-21@gated-at.bofh.it> |
| In reply to | #1614033 |
On Fri, Mar 31, 2017 at 8:33 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, Mar 29, 2017 at 11:33:26PM +0200, Marcel Holtmann wrote:
>> Hi Rob,
>>
>> >> Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from
>> >> Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since
>> >> they were queued by Tony. I also changed the patch order, so that the serdev
>> >> patches come first. All of them have Acked-by from Rob, so I think it makes
>> >> sense to merge them to serdev subsystem (now) and provide an immutable branch
>> >> for the bluetooth subsystem.
>> >
>> > Greg doesn't read cover letters generally and since the serdev patches
>> > are Cc rather than To him, he's probably not planning to pick them up.
>>
>> I wonder actually if we should merge all of these via bluetooth-next
>> tree with proper Ack from Greg. However it would be good to also get
>> buy in from Dave for merging this ultimately through net-next.
>
> I don't really care where it goes. I can take the whole thing in my
> tty/serial tree now if no one objects and I get an ack from the relevant
> maintainers {hint...}
I think it is better if it goes thru BT tree. I have another driver
converted that is dependent on this series. There's a couple other
serdev changes on the list too, but this shouldn't depend on them.
Rob
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-04-05 22:30 +0200 |
| Message-ID | <tsZJ0-7kG-25@gated-at.bofh.it> |
| In reply to | #1617266 |
[Multipart message — attachments visible in raw view] — view raw
On Wed 2017-04-05 13:16:58, Rob Herring wrote:
> On Fri, Mar 31, 2017 at 8:33 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Wed, Mar 29, 2017 at 11:33:26PM +0200, Marcel Holtmann wrote:
> >> Hi Rob,
> >>
> >> >> Here is PATCHv3 for the Nokia bluetooth patchset. I addressed all comments from
> >> >> Rob and Pavel regarding the serdev patches and dropped the *.dts patches, since
> >> >> they were queued by Tony. I also changed the patch order, so that the serdev
> >> >> patches come first. All of them have Acked-by from Rob, so I think it makes
> >> >> sense to merge them to serdev subsystem (now) and provide an immutable branch
> >> >> for the bluetooth subsystem.
> >> >
> >> > Greg doesn't read cover letters generally and since the serdev patches
> >> > are Cc rather than To him, he's probably not planning to pick them up.
> >>
> >> I wonder actually if we should merge all of these via bluetooth-next
> >> tree with proper Ack from Greg. However it would be good to also get
> >> buy in from Dave for merging this ultimately through net-next.
> >
> > I don't really care where it goes. I can take the whole thing in my
> > tty/serial tree now if no one objects and I get an ack from the relevant
> > maintainers {hint...}
>
> I think it is better if it goes thru BT tree. I have another driver
> converted that is dependent on this series. There's a couple other
> serdev changes on the list too, but this shouldn't depend on them.
I believe BT tree makes sense. Still it would be nice to get Greg's
ACK ...?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web