Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2267956ybh; Fri, 17 Jul 2020 13:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWHaMoUFgv1bxJi00L028CuSdv4D+2nF9wZ8MhIymeOBlY8jJpXoJVruKyOo+dxzh2CAW1 X-Received: by 2002:a17:906:fac3:: with SMTP id lu3mr10786596ejb.374.1595018047208; Fri, 17 Jul 2020 13:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595018047; cv=none; d=google.com; s=arc-20160816; b=a59St2uD6cBGkedweDRA1noIlFqoVJBd1sQsSYCK/1n8x6YHG8acPFXfsqKCvL6UwQ nXtfHRvcy6rWOAzxbYqNhQMlMp48XdIJ98iGy+R9W7oErFBaERnq6sZwunMxbgTbFpCi Mx5iKCEtoMK59TldnB+Un6losY94z1MqDWt+cJ+WWzNewlf84gLeF4KjykZqJxcdSG+H rv/X8nS6NSdh3Vfz+fVw5CpCJcM9rTWTEjTXIMMwNv9U2rBM6BFYMzuWzrUrhDcV1eBa 8A62GDUFb+v/zLxfqQfvGTjXGf0wbHCIeqN2gsu7EqY4rluKieSMnbKh0iARp7tMoRzX qcLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5UUkbXvkZXe8NVtarmx0b2nzNEqKIGpAHjV6phStybs=; b=HOgdAOTw0kv9wAAvhAWVeleHZvWsUVfXxnAVA87tarlIx60OUWyRZyjcBV/LfRGjwP Y6IFEKzYsoZeuGq+lN4xc04kDTuV2oWHRo0TWM+7UzIgs4OqC6BZMejXrZN+CN8N9wr5 EDuiYo8gxJezboYkDg2k4MXpxmOvLnDJHHvVwU9EqAKosB8o9j1eUmBRqQkY1MUPtgW2 kzTPrqKuckTXWZwGBQRl3q6sjU+tksnlHPtw83ZqAwbfUCIR9lJBcaMQuANZsJCkzRMb /SZ6BZn2pz3O8ol24DcFN2BpOLPS06mEVtmDdSYToSy6sVz3wJO2+gTD4hLa4MESSiz5 6Ikw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=plsU2H2y; 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 k2si4425143edl.300.2020.07.17.13.33.42; Fri, 17 Jul 2020 13:34:07 -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=plsU2H2y; 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 S1726510AbgGQUdi (ORCPT + 99 others); Fri, 17 Jul 2020 16:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgGQUdi (ORCPT ); Fri, 17 Jul 2020 16:33:38 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71486C0619D2 for ; Fri, 17 Jul 2020 13:33:38 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id z23so2080619ood.8 for ; Fri, 17 Jul 2020 13:33:38 -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=5UUkbXvkZXe8NVtarmx0b2nzNEqKIGpAHjV6phStybs=; b=plsU2H2y1UC8eAFJkrx9Nkehhw57sbGZako2KFikz7fGYYHFqnrWkG4SASw9NJ/tzs Z6ofXqdJrlir93bhOxznrWZ8d7ve9C7l53Z0d6uIDxssDTLePGDBW1rYRkEu6lNFZDhS RkUJ567ngqStRGep4hdsePk83YC4p+/hCjBqgAiAcJtZLa08EXk4NoOjDFAqv6Sw0nut KOm+ncGVVzbW5QZH/MCJP2Rmz623UkSKzciyIVOPmUNWZe3pk0uDx2VDA2IFePSh5rb6 Oxk0tyvDdyq2JsibvQZAWYNs8Wj6MyzzhXkwygo3uEg6P+1hp2uKGIHfcdn9e8qBINnH vJUQ== 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=5UUkbXvkZXe8NVtarmx0b2nzNEqKIGpAHjV6phStybs=; b=qd70vBaMgKt2zro5qdLdKYdEn51ZzOPMmj5mvzV4vhBrxyfjjCArLOUq4ulOSjidD0 BvPvXnIsImziLYiZEK/ELZDbuYhRojQAxE4E24QAGF7MLF0+8cf23f5Wnl/BDs6JUKi9 9SbApURwbVvdY7aQlzOQ4xN2BtC87du0geKHBeXtLiwAqkE8a5WwV0b7TkHd2/JGZdhX 7qUCnok9IJQdsklbh/mAu2czPuc0qus0328e/ztkM6jh2xUEqp3kWV+zU4sONauXLr6w VVu1Gnhk9RqsDmoLGXjfGLNyzRz/g2B5HZ/ix5OnYBeWRZfmZs4mAHNbx0AeqvngOFTN pw0A== X-Gm-Message-State: AOAM532mgJKsBs4Lq6XWoI4NU9bc+DiNoutCXPLALdXK0yTGVnyGN4xl NBCyHYy6EQQRwDSX8Ifw6z9JcTu+G/4UjtkMoY0= X-Received: by 2002:a4a:a21d:: with SMTP id m29mr10094897ool.17.1595018017594; Fri, 17 Jul 2020 13:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20200715224740.238527-1-sonnysasaka@chromium.org> In-Reply-To: From: Luiz Augusto von Dentz Date: Fri, 17 Jul 2020 13:33:26 -0700 Message-ID: Subject: Re: [PATCH BlueZ v2] profile: Add exception to battery profile for external access To: Sonny Sasaka Cc: BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sonny, On Fri, Jul 17, 2020 at 1:17 PM Sonny Sasaka wrote: > > Friendly ping on this simple patch. > > On Wed, Jul 15, 2020 at 3:47 PM Sonny Sasaka wrote: > > > > This gives exception to battery profile to be shared both internally and > > externally. > > > > --- > > profiles/battery/battery.c | 1 + > > src/profile.h | 4 ++++ > > 2 files changed, 5 insertions(+) > > > > diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c > > index 4da4355a1..c9a1af4b9 100644 > > --- a/profiles/battery/battery.c > > +++ b/profiles/battery/battery.c > > @@ -354,6 +354,7 @@ static struct btd_profile batt_profile = { > > .device_remove = batt_remove, > > .accept = batt_accept, > > .disconnect = batt_disconnect, > > + .external = true, > > }; > > > > static int batt_init(void) > > diff --git a/src/profile.h b/src/profile.h > > index 4448a2a6d..95523e50a 100644 > > --- a/src/profile.h > > +++ b/src/profile.h > > @@ -35,6 +35,10 @@ struct btd_profile { > > const char *remote_uuid; > > > > bool auto_connect; > > + /* Some profiles are considered safe to be handled internally and also > > + * be exposed in the GATT API. This flag give such profiles exception > > + * from being claimed internally. > > + */ > > bool external; > > > > int (*device_probe) (struct btd_service *service); > > -- > > 2.26.2 > > I've might have forgotten to announce it on the mailing list but this has been applied for a while: commit 0509a4a217256ac46020b957a6532dc150729748 (HEAD -> master) Author: Sonny Sasaka Date: Wed Jul 15 15:47:40 2020 -0700 profile: Add exception to battery profile for external access This gives exception to battery profile to be shared both internally and externally. -- Luiz Augusto von Dentz