Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2297647ybh; Fri, 17 Jul 2020 14:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9tzxuuPm7TgeaklZJgNa/jzwEzZ0MkyweiYfNo1u+PO55zzWr6Il3vWfhmcUWdzOsdZ5P X-Received: by 2002:a17:906:3945:: with SMTP id g5mr11091649eje.549.1595021874641; Fri, 17 Jul 2020 14:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595021874; cv=none; d=google.com; s=arc-20160816; b=RB2s7HP7nZujq3q/uAwB9AQA8vZZTqThErGcI3uP0tKz1iHb1hlnPDrg82Vn2uXTnW 7mx9VZcfVhuTPUlR4JkBPiQJMc/CAU19fnWgyYYTtheM1nH9sRYyESPDI5mr6lHDpWqe rAl/N6BzTENuuIf33l+g+z4Sy5+vjvuNIdSpScCQN1w95Flh5EpGNCV5GmqXmtQmO2r3 wHqNogx6T7hSnnSrjPBNs2GP41B33kh7XMEYFAHjzk18kVSGhe5/W6k8I1Vz1/EMSs0q Dan+/vIoMjWUsdN6dycLczOU3XUKBxpr9Sr3d2A3yaTtiHJhs7s7cvyfmvUT836dfgc6 yCqA== 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=hhUmSQousSwz/kbvYQi3hzGQnX8co6XG7O0Zkp3kB1A=; b=ekmUyZynXDJQR073Iqj6Ib/66N1clAQ1QZvSpcV1dfb/VThIyxfAh/tgaunc8m1ZZJ EcB/LTHWGmHXll+vVE/oM5ek9Ws+iikgwTP1tIiCypeuyQunRR7ftYgrxscJ/G+TRmoZ i24mp3Vf6isbDPQrRPjO5SIJsWKi4w73Of/y5ITePbq2fGN/InUcOEUMF4jZHgdcHC2c Q4rbXvxdtEakkGU/3q5X9lshL0UO3x7hEe5J0LhxYmtCswW6QGVxY3I/T7zpzWGOnGwj 7Cpt/x29ewPj3Fr8C2SEhP9Y1ydueDcWzBODy17M1Z8sC6SeieyVQ/ieJFh5T/42yFuI ltEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LRjJl1x2; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck12si5826615edb.449.2020.07.17.14.37.13; Fri, 17 Jul 2020 14:37:54 -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=@chromium.org header.s=google header.b=LRjJl1x2; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbgGQVhH (ORCPT + 99 others); Fri, 17 Jul 2020 17:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgGQVhH (ORCPT ); Fri, 17 Jul 2020 17:37:07 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27C4EC0619D2 for ; Fri, 17 Jul 2020 14:37:07 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id y22so9153963oie.8 for ; Fri, 17 Jul 2020 14:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hhUmSQousSwz/kbvYQi3hzGQnX8co6XG7O0Zkp3kB1A=; b=LRjJl1x2q8I/pT1qsGnVN9LXx33CVQsx8ys9MGgHR9an0Ew5mFwK3KdkU8bq+WADe1 KItMid9hqU6FBTU9CUW0nhEGxUDUCfBCKEidCzO6HMoAQjmKKkLcu/wAh6o+oL+bErHg iXJuFTUKSNbf9NK/5dEuQLZU9iRXKZ9iYWFrw= 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=hhUmSQousSwz/kbvYQi3hzGQnX8co6XG7O0Zkp3kB1A=; b=KrXAxql/oCJpE5trlMOjmM0DnEBmZ6hyLCO0kooig2+VYcN12oR8t1Tl+0m1EKvSxp MclKuoesskG6xO+krFn6zl2a4+W8Pn5x7IAX2HchxNmyy+FUw2YPAGoPmLpzA5jKKa9T rjF9qeTnq7AaWn9DqDhXrXlobUAACgmmxysiyn6PYeLxLqLcBZ9CodGIS7igVS5pp0Fy 8LYp6TDQiuI47TZJE6QUGxfKDg1SGPmtQMyzg2umH0ebJw6cc9PVJJxFW2A2Shyu7S+j 2WnCqptpZ66wzyxubv5hQk2FVRy6GAOdXSpG6+9N/4+0n5Dsf9fPVxhndtMKA7Cy++Y6 bnzA== X-Gm-Message-State: AOAM531Fmlb97OVUHWft9mXrteYAeBJ7mT2KHDjj2AtzsKw2rafcdh2a pFNvynv2Ykl7VwcBGjZnbwez9jxyaqqeI/aauJfIhg== X-Received: by 2002:aca:3043:: with SMTP id w64mr9074257oiw.27.1595021826525; Fri, 17 Jul 2020 14:37:06 -0700 (PDT) MIME-Version: 1.0 References: <20200715224740.238527-1-sonnysasaka@chromium.org> In-Reply-To: From: Sonny Sasaka Date: Fri, 17 Jul 2020 14:36:54 -0700 Message-ID: Subject: Re: [PATCH BlueZ v2] profile: Add exception to battery profile for external access To: Luiz Augusto von Dentz 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 Thanks, Luiz. On Fri, Jul 17, 2020 at 1:38 PM Luiz Augusto von Dentz wrote: > > Hi Sonny, > > On Fri, Jul 17, 2020 at 1:33 PM Luiz Augusto von Dentz > wrote: > > > > 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. > > Nevermind, it was just in my local tree for some reason, now I've applied it. > > -- > Luiz Augusto von Dentz