Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4575996imu; Mon, 12 Nov 2018 13:19:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eoXpJkcDD8soZqIuyk+cKvB8uJC+U66hgvpkgj2K8im93xQRF4/LeWuiaXyXJBmjEgc8EK X-Received: by 2002:a65:4784:: with SMTP id e4mr2218749pgs.12.1542057595168; Mon, 12 Nov 2018 13:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542057595; cv=none; d=google.com; s=arc-20160816; b=qGo5fVqzrDVBKDZep9K1TChTde6H9x7zPrN382dJq5B4L4YZ86/gy78CjgXnNR14Gr WbzMGxR7WqOA7kndw6xH7B6X/s+BtNrjBIiLcQM+3aZ17njw3TfJrHwhY97rAalu8XWX tOvLG/uoNDGH7qCApkk1auGFpNnrRo82Elyf1gUj1ApReJtAPMWSLETdrUyHX1yrG8hb K7Wn04HjZBDAignUFnI4Wxw8e4P3L4+xQpXaV81ItmPp6SOLQGL4CdDsAs3cLbZbkzXn Yjc1X4K1weew8FqO8CFwtSMTEb76zyL4YqsGg14F34UEllZwOYayaC/NO8CvdQfENOIh E6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=IZAqQ5+zdEdlzlFB+cKfHmqXKX0zwqymF8UK/DOfXAo=; b=nLqIwCLjfN9CNMFLCjaLclpQXDgbVRm97/f/hZhnUAgRO9bRwoV9K81EFG4YyUp33R +ttQogygjOlPSOQGErIAxTWEuAqsKUJyh/8XkbiDAH4ZukKjpPqntDEdlr3RWYizQVeu +2oJmtxGVKBiBpV17U62e2KHPqajV5GaemwULHvqk4gDU7ob8qQnE2TDBEUV7fvyL4m7 MgCOmyPdAJkncCafQxQuM4DOAG73TdipYxauLTniRavznqp9g+x9iOCr+1EgUzb1eihQ b3IsyMmHJ6kvXVn6rbNIZppX8DCIUa5n8gU3XbhgWzxt1ba+/ObsOrQCNO//1VvhbuQA Y+XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d128-v6si12720804pfc.256.2018.11.12.13.19.39; Mon, 12 Nov 2018 13:19:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730474AbeKMHOR convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 02:14:17 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.164]:17371 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727267AbeKMHOR (ORCPT ); Tue, 13 Nov 2018 02:14:17 -0500 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDlSUXA0LOA==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.3 AUTH) with ESMTPSA id J0aaaduACLJ3xGQ (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 12 Nov 2018 22:19:03 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree From: "H. Nikolaus Schaller" In-Reply-To: <20181112215812.18ebca35@aktux> Date: Mon, 12 Nov 2018 22:19:02 +0100 Cc: Sebastian Reichel , devicetree , Johan Hedberg , Marcel Holtmann , LKML , "open list:BLUETOOTH DRIVERS" , Discussions about the Letux Kernel Content-Transfer-Encoding: 8BIT Message-Id: <2C74C837-A6D3-47C9-BE59-CCA594289B94@goldelico.com> References: <20181110232034.17277-1-andreas@kemnade.info> <20181111024648.7rt7rlhaqihtqecv@earth.universe> <20181112215812.18ebca35@aktux> To: Andreas Kemnade X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > > Hi, > > On Sun, 11 Nov 2018 03:46:48 +0100 > Sebastian Reichel wrote: > >> Hi, >> >> On Sun, Nov 11, 2018 at 12:20:34AM +0100, Andreas Kemnade wrote: >>> This is a first try to be able to use h4 devices specified in >>> the devicetree, so you do not need to call hciattach and >>> it can be automatically probed. >>> >>> Of course, proper devicetree bindings documentation is >>> missing. And also you would extend that by regulator/ >>> enable gpio settings. >>> >>> But before proceeding further it should be checked if the >>> general way of doing things is right. >>> >>> Signed-off-by: Andreas Kemnade >>> --- >> >> Patch looks good to me, just one note >> > I found one thing myself: > Shouldn't we have a generic compatible string like "generic-h4". > ehci-platform.c has for example: > { .compatible = "generic-ehci", }, There might be differences in h4 compatible devices (e.g. default baud rate) so that I would not bet there a "generic-h4" suffices in the long run. And, shouldn't there be a vendor prefix anyways? I.e. something like "bluetooth,h4"? Because it seems to be defined in https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=41266 On the other hand, with hci-ll protocol the compatible strings are chip variants. Well, this seems to be required to decide which firmware to download. So it boils down to if DT compatibility should be compatible to generic functions or specific chips? AFAI see this is more or less random and there seems to be no general rule. Just some thoughts but no strong preference. BR, Nikolaus