Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp725961pxv; Thu, 22 Jul 2021 10:36:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu+5ce79Q7wJ1v2b2tR3zFugizaCoygNoGYkN6cFiBeqI/FuX/V59ypE2HaLhGOuGo1rXU X-Received: by 2002:a92:cb0b:: with SMTP id s11mr628842ilo.292.1626975399086; Thu, 22 Jul 2021 10:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626975399; cv=none; d=google.com; s=arc-20160816; b=UZVetC0wb1PXgjITNSX1fz0+88xCA7r5b77ZWbhYXBLdttcP1mQgUtnMGeuSFEN8TR dcE00SBF0fSZ+2iX3SssfQMrMDsQhPYMY406vTMa8mriuCJaZqx9wzcbfd5gsSvGMMaM gu1KvI9KOFxBI700xMFOnf8sauOb2yancwqI1k9g/TOzMrCwsYtdvb4AeCAMpURmp6Uo hlKgxG946KJP4+CQWja41NdzGoI0uUB8qaI/0zYS0Ce8Nx03ydkMEkhgrI3AB6N8mNyV Fx5eCl5XmSCpWW0HzCxtbRgMgC1jZjnMtOTVY3922xr64XtKGiKEoQowhQTkFVjAqt04 2G2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FX7uGT/LtaCtaLWZQ+MWzHZ6Mgny7SPOIF7zoGEpiig=; b=VB5mP4tl+4kijZuAaFxwHvEoVjWoHf9PN23snAVsN+vSERGyVwCs4CiVyyGh+XJGqR O2PBvABJw766B9iGRCYFpIllh/bXScozDkGxMqgEoXhIH2KkXh8Mz7/PXO8/XjEfqTlm iiHbNkZs4dRBKYftzyW7uS34PzIS6fZ3YJ993pdIcv0czVlyTprm5PfGzRHanYGDDEeG cwmIc/y70DxjAgT6fWzSVGhSAKh+54o4elWEyJlKZ7DlIGT29QwvV/mjs32IFTvKzD3w XDEPQ5os+QVxDmruE7kWV55jbVytprzrVkqaYztc+oVNOZV02Wqooyg48rmpJjzQXw/X RZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/czBGsW"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si30214937ilc.36.2021.07.22.10.35.55; Thu, 22 Jul 2021 10:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/czBGsW"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbhGVQxX (ORCPT + 99 others); Thu, 22 Jul 2021 12:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhGVQxX (ORCPT ); Thu, 22 Jul 2021 12:53:23 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB072C061575 for ; Thu, 22 Jul 2021 10:33:57 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id t186so6666773ybf.2 for ; Thu, 22 Jul 2021 10:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FX7uGT/LtaCtaLWZQ+MWzHZ6Mgny7SPOIF7zoGEpiig=; b=Y/czBGsWo/9blbUd/dGg8zZLHaOcLHkh5DJPyHePxdn33Bi0HAGroTGNi0mQyTAu5h X3zA6GhfaOfi2TXJXDG5ejPsceDIHnu92TcHsoHXrotLRT9/2Q0aXZZTE5lTBrABnhaM o6HvW9yNs01zEwXOkXcUCxdO/G8ISwbQ2VzLsGDF4ZG8fuvpJ6KwhjFxk6hTbBUowLfy htjTv+rq+UMzDXvfgX68G88v6PN75OnbVhwTmATXc8Is4hVmwMejLzYTt8iyE3qaYZ78 QpAQCfLV06TGRmq+uYp9XJaOOg6L/QtoN3mq6Mt76/nPZjKf8cCnN2z2gNIvhLmv+w2o Ghnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FX7uGT/LtaCtaLWZQ+MWzHZ6Mgny7SPOIF7zoGEpiig=; b=YXp3N+nFUoLUIEF8FOdJplCL+xP7+moOpAoJ3JyZfvATA1VC8UjzW9ZR6U37016cpS /Ij3wRPnkEuN+9O691dsBuDU3a/Q07fwW21mrRhG9owvrtd+WfA/F9XU1QPJF52zUDSc tVpHXbLUg3YPXGZDdrPemqhkwiOwQBbSv2zbzxW1NOJfGN/tJjvdNcp0iF7V0heugPKB Q0vtz0ozCHLbuP5cxeE/v99ipGqauDbeSQ3/+xVPaJRfdxZU1iZ9tbiDfIPd15DJv9RL 18K6rdMhWV+oiK0DJYYfRuawqvbO5AZd+vT5FzsnO4lOc5H5wA19nsk5zkQTIZq0jxnJ ECpA== X-Gm-Message-State: AOAM531OKyGN40OeJC9FP08Zmd0cmSxFs2wocprbqYwHDVm3tWB6+e8R b+hDIImGY1N0fctvIcWXkV4gb/dEfb81C2nMimo= X-Received: by 2002:a25:fc1c:: with SMTP id v28mr882354ybd.408.1626975237083; Thu, 22 Jul 2021 10:33:57 -0700 (PDT) MIME-Version: 1.0 References: <20210722054951.8291-1-ayush.garg@samsung.com> <20210722054951.8291-2-ayush.garg@samsung.com> In-Reply-To: <20210722054951.8291-2-ayush.garg@samsung.com> From: Luiz Augusto von Dentz Date: Thu, 22 Jul 2021 10:33:46 -0700 Message-ID: Subject: Re: [PATCH BlueZ 1/8] doc/device-api: Add Phy property To: Ayush Garg Cc: "linux-bluetooth@vger.kernel.org" , Anupam Roy , nitin.j@samsung.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ayush, On Wed, Jul 21, 2021 at 11:03 PM Ayush Garg wrote: > > This will allow to set the LE PHY preferences for > a connected device. > > Reviewed-by: Anupam Roy > --- > doc/device-api.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/doc/device-api.txt b/doc/device-api.txt > index 4e824d2de..d0e108f74 100644 > --- a/doc/device-api.txt > +++ b/doc/device-api.txt > @@ -272,3 +272,25 @@ Properties string Address [readonly] > Example: > > 0x26 0x01 0x01... > + > + array{string} Phy [readwrite, optional] > + > + PHY Preferences for a connected device. > + > + Note: The controller might not be able to make the > + change because of reasons like peer not supporting > + the requested PHY or it couldnot schedule due to > + other activites. > + > + This is only available for LE capable controllers. > + It will return Not Supported Otherwise. The property shall be omitted if LE is not enabled, I guess that was the intent of optional but saying it would return NotSupport means otherwise. > + > + Possible values: > + "LE1MTX" > + "LE1MRX" > + "LE2MTX" > + "LE2MRX" > + "LECODEDTX" > + "LECODEDRX" > + "LECODEDS2" > + "LECODEDS8" > -- > 2.17.1 I guess the intend here would be to have a prefered PHY for LE, but I wonder if this would really help since different profiles/service may have different preferences, also by being an array I assume one would need to the enter in the preferred order which should probably be stated and again depending on the use case this could be a config setting in main.conf instead so it is applied globally to all devices by drivers can overwrite it with their own preferences. -- Luiz Augusto von Dentz