From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753164Ab0LFOGP (ORCPT ); Mon, 6 Dec 2010 09:06:15 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:53551 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751955Ab0LFOGO (ORCPT ); Mon, 6 Dec 2010 09:06:14 -0500 From: Arnd Bergmann To: Vitaly Wool Subject: Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson CG2900. Date: Mon, 6 Dec 2010 15:06:04 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.35-16-generic; KDE/4.3.2; x86_64; ; ) Cc: "Par-Gunnar Hjalmdahl" , Alan Cox , linus.walleij@stericsson.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Holtmann References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012061506.04364.arnd@arndb.de> X-Provags-ID: V02:K0:HtWFB79kOPIOUmZPUmMgvXQO1WF7x9cLXp6vfcmqcNI 7uAuzGSKdA07+rSgvObxc19v+oPq8vECXFnXUve5f09E9CGYi5 3nPij7UtCqDV+dAqqw53ZgPdOlvQBqJPGn+DBTIO6i4PJU8cp/ L6DUy12XXs8Uqo1KfWZYnk0cZVNIOw7ChUEvrqlZzKJS/yBSta ki16F7zzl302+R1PgRoAg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 06 December 2010, Vitaly Wool wrote: > On Mon, Dec 6, 2010 at 10:06 AM, Par-Gunnar Hjalmdahl > wrote: > >> Isn't it better to have a new line discipline that the standard > >> drivers (H4, LL, ...) will be applicable to? > > > I'm not certain what you mean. We are modifying the line discipline a > > bit, but the only thing we have needed to do with existing protocol > > drivers has been to add a boolean parameter for the protocol settings > > (so they will register to the Bluetooth stack). I don't see why we > > should create a new line discipline driver and then move the existing > > protocol drivers to this. > > Okay, let me try to be more specific. There's for instance > drivers/bluetooth/hci_ll.c which is the line discipline driver that is > meant to work with any BT chip supporting LL protocol. Your solution > seems to imply that one will have to create a variation of this > implementation for each BT chip supporting LL that will use your > shared transport implementation. Is it really the case? hci_ll is not the line discipline but the a TI specific uart protocol. The line discipline driver (hci_ldisc.c) is shared across all protocols (h4, ll, ...) and gets extended slightly so it can deal with cg2900 in addition to the existing HCIs. The rest of the cg2900 support is about adding more hci_uart_protos. Arnd