From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 966B2273 for ; Mon, 3 Aug 2015 07:42:56 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 4379389 for ; Mon, 3 Aug 2015 07:42:56 +0000 (UTC) Received: by oigu133 with SMTP id u133so23247211oig.1 for ; Mon, 03 Aug 2015 00:42:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20150723105726.GC30929@amd> <20150723121441.GB29747@amd> <20150723084251.54da2be0@gandalf.local.home> <20150723154014.GD11162@sirena.org.uk> <55B7FD82.8010806@sonymobile.com> <20150728230743.GO4753@usrtlx11787.corpusers.net> Date: Mon, 3 Aug 2015 09:42:55 +0200 Message-ID: From: Linus Walleij To: Rob Herring Content-Type: text/plain; charset=UTF-8 Cc: Bjorn Andersson , "ksummit-discuss@lists.linuxfoundation.org" , "riverful.kim@samsung.com" , "kyungmin.park@samsung.com" , John Stultz , Pavel Machek , Greg KH Subject: Re: [Ksummit-discuss] [CORE TOPIC] Mainline kernel on a cellphone List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jul 31, 2015 at 6:18 PM, Rob Herring wrote: > The WiFi side is actually in better shape than BT. With BT, we have > Bluedroid vs. BlueZ, no real DT bindings to describe BT chips (plenty > of examples of how not to do it[1]), and chip specific userspace > initialization (firmware loading, baudrate setup, power mgt). I was looking at it at one point and couldn't wrap my head around how the BT support was devised from a kernel point of view. It seems BT chips more often than not sit on a UART connection (often very high speed) and since there is no "uart bus" or "serial bus" akin to what we have for I2C or SPI, it is actually impossible to instantiate them properly in the driver model. Instead BT drivers are poked and peeked from userspace using the line discipline as if they were some kind of modem, just in-kernel. The stuff going on up there may seem simple and intuitive for the BT people but for a random kernel engineer like me it seems like magic. This makes them hard to review and upstream for what I can see. Yours, Linus Walleij