Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753106AbdCWHut (ORCPT ); Thu, 23 Mar 2017 03:50:49 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34102 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbdCWHur (ORCPT ); Thu, 23 Mar 2017 03:50:47 -0400 Subject: Re: [PATCHv2 09/11] Bluetooth: add nokia driver To: Sebastian Reichel References: <20170321223216.11733-1-sre@kernel.org> <20170321223216.11733-10-sre@kernel.org> Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , Rob Herring , Samuel Thibault , Pavel Machek , Tony Lindgren , Greg Kroah-Hartman , Jiri Slaby , Mark Rutland , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, frederic.danis.oss@gmail.com From: =?UTF-8?Q?Fr=c3=a9d=c3=a9ric_Danis?= Message-ID: <07cf4c22-b798-6e77-cca0-548e32e9de3f@gmail.com> Date: Thu, 23 Mar 2017 08:50:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170321223216.11733-10-sre@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2425 Lines: 69 Hello Sebastian, Le 21/03/2017 ? 23:32, Sebastian Reichel a ?crit : > This adds a driver for the Nokia H4+ protocol, which is used > at least on the Nokia N9, N900 & N950. > > Signed-off-by: Sebastian Reichel > --- > Changes since PATCHv1: > * replace __u8 and uint8_t with u8 > * replace __u16 and uint16_t with u16 > * drop BT_BAUDRATE_DIVIDER and use btdev->sysclk_speed * 10 instead > * fix wording of a sentence > * fix error path of negotation & alive package receive functions > * replaced nokia_wait_for_cts with newly introduced serdev function > * use "nokia,h4p-bluetooth" as compatible string > --- > drivers/bluetooth/Kconfig | 12 + > drivers/bluetooth/Makefile | 2 + > drivers/bluetooth/hci_nokia.c | 819 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 833 insertions(+) > create mode 100644 drivers/bluetooth/hci_nokia.c > > diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig > index c2c14a12713b..2e3e4d3547ad 100644 > --- a/drivers/bluetooth/Kconfig > +++ b/drivers/bluetooth/Kconfig > @@ -86,6 +86,18 @@ config BT_HCIUART_H4 > > Say Y here to compile support for HCI UART (H4) protocol. > > +config BT_HCIUART_NOKIA > + tristate "UART Nokia H4+ protocol support" > + depends on BT_HCIUART > + depends on SERIAL_DEV_BUS > + depends on PM > + help > + Nokia H4+ is serial protocol for communication between Bluetooth > + device and host. This protocol is required for Bluetooth devices > + with UART interface in Nokia devices. > + > + Say Y here to compile support for Nokia's H4+ protocol. > + > config BT_HCIUART_BCSP > bool "BCSP protocol support" > depends on BT_HCIUART > diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile > index fd571689eed6..a7f237320f4b 100644 > --- a/drivers/bluetooth/Makefile > +++ b/drivers/bluetooth/Makefile > @@ -25,6 +25,8 @@ obj-$(CONFIG_BT_BCM) += btbcm.o > obj-$(CONFIG_BT_RTL) += btrtl.o > obj-$(CONFIG_BT_QCA) += btqca.o > > +obj-$(CONFIG_BT_HCIUART_NOKIA) += hci_nokia.o > + > btmrvl-y := btmrvl_main.o > btmrvl-$(CONFIG_DEBUG_FS) += btmrvl_debugfs.o This does not build as module with following error: ERROR: "hci_uart_tx_wakeup" [drivers/bluetooth/hci_nokia.ko] undefined! ERROR: "hci_uart_register_device" [drivers/bluetooth/hci_nokia.ko] undefined! Should not hci_nokia be part of the hci_uart module? Regards, Fred