Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2381306rdb; Fri, 8 Dec 2023 06:39:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVT5tG+rtMJZdERlG27hLeCwml+27Fd4PvJy/Ds7LvSu5N17TfYcMRDKVOnv92wd4OoWDW X-Received: by 2002:a05:6402:2314:b0:54a:ff96:2cba with SMTP id l20-20020a056402231400b0054aff962cbamr155340eda.33.1702046384310; Fri, 08 Dec 2023 06:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702046384; cv=none; d=google.com; s=arc-20160816; b=yIdGoMxj7kKd+jsXpP5v3tP5upzkVgLsqwBS2NQi7aAytDiatmuCE4wb5d7BlT0KeF afHFawgq3Xw8ibOyizZUTvpyQjZnzntrLovf566uK9JeT4yI3LcdXDpFfcLM30zfBpUC yZGiy6o6+CkR42eKK65flZAT4jO36bBfTB+ZsjOz98jyZYeUC6MmGYgIXLuUO7podm5B dE4uPX13XIBeZkV3yLeNpn81PPP1Dh5oIHqUtjJWZQGB/QcY4uUeU5oihzcESOz4nTrN NfBvXA4H25PbmM8nvQRiT56SuxsCUH7HIAc8rkF2ewbi9U8nT+rzTf4wytTvrTlYCX/b lqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ViZC4QTDPrahb7XF3coKuOMimJ85Gvvvh6o9Zss5j2s=; fh=rrBe5VmzStn5KVquKnfzsEgKOlb1Tnxg4GAfTsE24GQ=; b=CL3T63PAmtw8djvQ0IppnOyrRDYtyGrCCvbAK2zXBNpv1RMlQg4qwwerxBzsdGjg3f xgK2hIQym4tV6DfQCzySWCwiCTU9QY+dgGLQ7GG+4HyZMaiGaEqR0RjDxte/P5wQY75k 87x5xDOlYNG0gjGcAX3i2rT8mzNC/DHcohYz9pjfeLJOr/X1FOj+bBWyA5iI0N8gQjjc 0g33Zlv9Epl+t1jGHrtvDgW/HQ/C9wkpFxUf2k0NyLqbk7mixRDzw4Mowvuw42pjDeiF ZpqlfRsK6X6hYTdwzfykv4YhdfaQ+PNPOi9xdBJuvErtqoaj1dJDpQkVbOqOtUiYHlLy vphA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q4UXMvvR; spf=pass (google.com: domain of linux-bluetooth+bounces-472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a22-20020a509b56000000b0054f51389c50si636993edj.480.2023.12.08.06.39.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 06:39:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q4UXMvvR; spf=pass (google.com: domain of linux-bluetooth+bounces-472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CF3821F213D5 for ; Fri, 8 Dec 2023 14:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 859741E48D; Fri, 8 Dec 2023 14:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q4UXMvvR" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44FF2198C; Fri, 8 Dec 2023 06:39:33 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-286f22c52c7so1762077a91.2; Fri, 08 Dec 2023 06:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702046373; x=1702651173; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ViZC4QTDPrahb7XF3coKuOMimJ85Gvvvh6o9Zss5j2s=; b=Q4UXMvvRWKH0IZCv/FPpEx7QYTWpw9+ZHxaro/aewLphTuNqUXTc4wY9V24CBvZb03 wGojPepp3G7ZtJupUMEr7wvHA8De1ObrPaQp/iaOTwbcis2oZoYUDThkKYkvQUxffS1I GS9o8bQ41tTICDECEMX+4Xfc9iK5qPilKYsgWFhEDPiztxbpJ8kf3iyiAALLsyRY+ZXg xLtrDtns9l7XMy8nhh4RezgT1OEWvtkr9XuTfluWtttNlgsudz7xZ/rEAGOt71yLxlWg 5Q8AyyXM5vaIP6nxtb4U8GH+FMVQpLNovYgi1EkLbznObCRLXrktvGx6FqMVEfPgdsck kQyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702046373; x=1702651173; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ViZC4QTDPrahb7XF3coKuOMimJ85Gvvvh6o9Zss5j2s=; b=e6NVn0+FKwVV70JsIoCZTkj0TpwIUhB5ExNClvamWvCnhGpDUYqGQoze1NVfRGzO3V PNDP/iTp/WVu6+hyLH+irU9ePfWgc1fUpJfYO33M8vsxPqvSLFGBM96B9m32dS3g+GHR oFL8JyvqTJGGPZZX7Ad/KogNp91SzuZAQjAdfE5uahCoqi8/UVdz3OKfJIfUIbDyKlKC 32Y4QqYJhhOb6+w9nK8HNOrqWvOqTWGXXgmFu7PzI02q1GErI6ei+TSli5gvIOuatfPv w2+pkK+udvbZCtUlwqktA7cIYWGArgs5NeAxWqnPMwGc5qyIh5CDgYl9aOpbCaAO4tME RhWg== X-Gm-Message-State: AOJu0Yy/Ml5fCJ1PveZMAeBMWj0bOrZ3Z0X8fg0vULGcWUFLIbcdCGUJ o5rwvIkSd3Su6X6CSawD0tS3807ov/AdITX1y6A= X-Received: by 2002:a17:90b:300d:b0:286:cac7:3b45 with SMTP id hg13-20020a17090b300d00b00286cac73b45mr153817pjb.60.1702046372586; Fri, 08 Dec 2023 06:39:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231126191840.110564-1-andreas@kemnade.info> <20231127135424.GO5169@atomide.com> <20231127215108.6e985819@aktux> In-Reply-To: <20231127215108.6e985819@aktux> From: Adam Ford Date: Fri, 8 Dec 2023 08:39:21 -0600 Message-ID: Subject: Re: [RFC PATCH 0/3] bluetooth/gnss: GNSS support for TiWi chips To: Andreas Kemnade Cc: Tony Lindgren , marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, johan@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ideasonboard.com, =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= , robh@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 27, 2023 at 2:51=E2=80=AFPM Andreas Kemnade wrote: > > Hi, > > On Mon, 27 Nov 2023 15:54:24 +0200 > Tony Lindgren wrote: > > [...] > > > - Output at /dev/gnssX: > > > AI2 vs. NMEA > > > The chip can be configured into sending AI2-encapsulated NMEA, > > > or proving data in a binary format. > > > Some research has to be done yet for the details. > > > A pile of logs is waiting for further analysis... > > > > > > Arguments for/against NMEA: > > > + Userspace is prepared to handle it > > > + Power management can be easily done by the kernel > > > - Less functionality can be used. > > > > I'd go with NMEA format as the default setting :) > > > yes, that would also be my preference. > > > > Arguments for/against AI2: > > > + Full functionality can be accessed from userspace (incl. A-GPS, > > > maybe raw satellite data) > > > - Userspace has to behave to have proper power management > > > - No freely (not even as in beer) tool available to fully use AI2, > > > so there will be only a real advantage after long "French Cafe" > > > sessions. > > > > Seems AI2 could be optionally enabled as needed with some writes > > to /dev/gnss0 to change the mode? > > Hmm, we have > /sys/class/gnss/gnss0/type to get the mode, maybe we add some file > to change the mode? Or having it hidden behing a module parameter > and implement something better accessible if any need arrives? > > If we want NMEA output, probably some init commands will be sent at > open(), but userspace doing something with AI2 probably does not want > the device touched, so it should probably be already be set before open()= . Is there another revision coming or should I try to test this one? I am not very familiar with the GNSS part of the module, but it sounds like there was some consensus as to which direction we should go. I should have a little time this weekend. thanks adam > > Regards, > Andreas >