Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4634457imu; Mon, 12 Nov 2018 14:28:09 -0800 (PST) X-Google-Smtp-Source: AJdET5dSfgZA6uyxUuLSdSH5s8I9gdO++ZWKp7QV26XCAwILT7NUiudCpyDSIrdDFP8nJmXC0Psp X-Received: by 2002:a63:e156:: with SMTP id h22mr2435013pgk.255.1542061689745; Mon, 12 Nov 2018 14:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542061689; cv=none; d=google.com; s=arc-20160816; b=ASFwXGzA4M4hFa2Ww3i3X+DOuEySxLnjz4ThhhF9wzvVYlG+Kdq4nrweUEnp6wb3Lb w+pOiFL3tkP0wIn7dpEZNrc67YCEPWQQ+vOurT4wtLM9bkFymHGcvVuXW+CxP5LkvEHh nGqmr7K7l4BCKE+VLlibFplR247jV0UMRlKpbX2MdXyRuaQbPdgzc/dJdmqXqzNdrxAU bUs+xVLqQrdlUIE72SS/YyiEfQRVpX222iVBcKLUrxTtOjNQHCjUo4cF+yMG2oLKahmx hwg1NUNTBQmvoJUsI0Ya84aGBXU4XezKdyjmKkN9jqausK/WQLkkHpmonliMqzp/PVo4 HwSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MlGmVWEIWYbWb2Wz+mbCEuNLGmobpQJ00BQt1DUDb7M=; b=x3Tv1GVsmKVVwg8oxKNsURq7sdy+rsKbhx4V8w71R2X9sYtY6zY9s/FaDMm2oxP3tR 3oaqdLIkEZ/mQAN+uIidYI4ZR6d7CHjUcnbUURgJtJe63xyuub0yyGB9aC3B6JONja8H zBusm6oFIn3CUFFlDBOFhX0txVYJdVThmj8r/x8EM2GUmOi4wEFWf8nc+7GvFnrdY7Qa SZcMwNXzMUpSkODZr92CBT2hiyZgyYIYrMNCURKLckM7cN8/GW+qqvOA6qi9KNMbUH4m wivQ1o1DGSiUkGseN8zp8KI/ieDaS2zX0EtoKklHpqb2zTMMyD7ynmBY0tdzBoNPaiMz qI/w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7-v6si18144123pgh.131.2018.11.12.14.27.52; Mon, 12 Nov 2018 14:28:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730608AbeKMIWl (ORCPT + 99 others); Tue, 13 Nov 2018 03:22:41 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56494 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbeKMIWk (ORCPT ); Tue, 13 Nov 2018 03:22:40 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id C1B9D263974 Received: by earth.universe (Postfix, from userid 1000) id BC4793C08D6; Mon, 12 Nov 2018 23:27:26 +0100 (CET) Date: Mon, 12 Nov 2018 23:27:26 +0100 From: Sebastian Reichel To: "H. Nikolaus Schaller" Cc: Andreas Kemnade , devicetree , Johan Hedberg , Marcel Holtmann , LKML , "open list:BLUETOOTH DRIVERS" , Discussions about the Letux Kernel Subject: Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree Message-ID: <20181112222726.73m2oca7hankvcjs@earth.universe> References: <20181110232034.17277-1-andreas@kemnade.info> <20181111024648.7rt7rlhaqihtqecv@earth.universe> <20181112215812.18ebca35@aktux> <2C74C837-A6D3-47C9-BE59-CCA594289B94@goldelico.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ze4zhyyztanyefel" Content-Disposition: inline In-Reply-To: <2C74C837-A6D3-47C9-BE59-CCA594289B94@goldelico.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ze4zhyyztanyefel Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Nov 12, 2018 at 10:19:02PM +0100, H. Nikolaus Schaller wrote: > > Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > > On Sun, 11 Nov 2018 03:46:48 +0100 > > Sebastian Reichel wrote: > >> 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. > >>>=20 > >>> Of course, proper devicetree bindings documentation is > >>> missing. And also you would extend that by regulator/ > >>> enable gpio settings. > >>>=20 > >>> But before proceeding further it should be checked if the > >>> general way of doing things is right. > >>>=20 > >>> Signed-off-by: Andreas Kemnade > >>> --- =20 > >>=20 > >> Patch looks good to me, just one note > >>=20 > > I found one thing myself: > > Shouldn't we have a generic compatible string like "generic-h4". > > ehci-platform.c has for example: > > { .compatible =3D "generic-ehci", }, >=20 > 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. My suggestion is to use this in DT: compatible =3D "wi2wi,w2cbw003-bluetooth", ""; The driver can start with supporting just the generic compatible string. If somebody finds some incompatible differences, the driver can add a custom handler for the wi2wi chip without breaking DT ABI. -- Sebastian --ze4zhyyztanyefel Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlvp/ksACgkQ2O7X88g7 +poHVg/7BoyvAyCiJONVG/I/lUUFzZO05ADwRgWs1GsR4Q1HwTy5in8qptYBNgU3 MR8xJ5ou91KrarNONScppcqfhMpl3HIGi/u15OIy86lU2ZjLdU4G4tEgAthY8Fgj B+lNyiEd4j6omKrf2Y/2yXACS3J61n8goVL8X9aOx1EtuQxkU0MFRLsabRwMWLD1 wmAHUTFkrxLC2NAGJIElUyu3MxsWyoVAlGvxdBseFJjADk2tjwwUJIvz284CJ2qn MG30ZsEiXrhBSSBFz6tJ9x7zI5ty55Uhtgtsro/R2lEdSL2IrdNxML9QxavzA/Q1 DfMfBBaFdeEBmIVycj8eaNJriP07dKqxwVnoy81bwE9V5DQF7yeSlHTDZJoz36Y5 1qIpKcTdx4EEK2Z6TMXY7kshGlg/MB4gxsaJspTtUszgFgVxJ9uN59ZW3yca+RYL YYxfQkA4wnCC+FqyFJKgPqzoR1Xy6l3iJiRDRIgb8EmvRFwRPqhW2ygVmLJOS3iG Ai0AscnY9IUoOynEcpt1WD06mlpYQSHhG5TU+ZXqxG1wPMzCckRsalVfeQNUd3YF k/9jUoipLHgTw/m085aT2N5HTFM6W3uOteADUoG8fAAuGSbELON5Og3tMhe86WSi 4uRJrN7O2ZcivXtd6+mqnfcfei3k+oAIHAe/34DmzE9YcUKZ7Hk= =ngpR -----END PGP SIGNATURE----- --ze4zhyyztanyefel--