Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp882012ybl; Tue, 28 Jan 2020 14:07:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwVOGcDv6mI1xiyyH6NUdD5p5p3DvYSwU3ekuXuEwxsV1TBv3HtVZQnjXBMdMLh7zFhvEhp X-Received: by 2002:aca:ab0f:: with SMTP id u15mr4471779oie.26.1580249235566; Tue, 28 Jan 2020 14:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580249235; cv=none; d=google.com; s=arc-20160816; b=QzqXCDp+Thvt4h8Gry9JVdyhVB/vT/RBXOez6hZNKcJrjJEBu1Ru5xLZnYBFihqaM/ olph8omHG3sMtb2jCUz6q9Qy/1U3myX0w3KojO426ZO2QA/ACNnln4lEaBc9zD5yCsAh PRR+f6QodPUNiSNxElX0j05dzZO1qBrmrJ5N0SZ0hUBJbgTYqNWAFSQKPRngHlqZo42d MfD1aKMwX2GSIGfH/AJFpfp4DsIH/bWOdHXwZdqB9I7C9YmZkdGJaiINCzJAFs0l//0s 0etoPHISF9+upBKm69Ra6ltB+A6U3b3wTaBVUzUCBZyTrQ2cr8vJFjdARd6VLyzuWXSy jm9w== 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=Xt3c1Dw8yio/KFCJDkLfGcy91s3+5OniZirpgiKi4No=; b=WUKN2dgZ1I4V3Ia/N7C8vcuYNDiOjhsPEnxgL8vlc2DpjcGHM2liE9C3sFQD7zGbPw 9Qp5sBgJz7biYC0L3wYR4TDPKnTauqecrR1LDG9QUBNBOjMJHwocbV1HdTEgQFlObxJo 3ENQl73tCf6rSpIm5NyqorVuPlJ2HVGbO7ukyPpXCuXfg2n3VRoqGj1lBOotHru8kyjN z1lB3Y+PG+4Y4ypoUtcEgpIiyCVR5ueqs3jMD1ivYDilu72/WmTvZZPkOeQRn2B3Djtn 4iyuzcBA/VLWF7KiofMiVkLRolgV/PNCHAwnjYmigi984BSOpFJwYaT5LWaIUsAmaVKq w2JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dYYFW0Te; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h9si12842otb.49.2020.01.28.14.06.56; Tue, 28 Jan 2020 14:07:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dYYFW0Te; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1726234AbgA1WGz (ORCPT + 99 others); Tue, 28 Jan 2020 17:06:55 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:42288 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgA1WGz (ORCPT ); Tue, 28 Jan 2020 17:06:55 -0500 Received: by mail-vs1-f67.google.com with SMTP id b79so9162598vsd.9 for ; Tue, 28 Jan 2020 14:06:54 -0800 (PST) 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=Xt3c1Dw8yio/KFCJDkLfGcy91s3+5OniZirpgiKi4No=; b=dYYFW0Te7qImBnAleaLBQdseLmEDcWRephqG4xXV4EfGGeXPhyqVhNu1GMmx0uYSLf AaGUnsXa6FY2Mim3p8ijenjHnfKpkkc3CXcjgtJnwlhWiNi6PTV00MuduY/2TApEUipK 1l6f3qzVLVOjEPI8g27Bx1R4cDmQYe2HpLIUg= 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=Xt3c1Dw8yio/KFCJDkLfGcy91s3+5OniZirpgiKi4No=; b=d7YFLVlQlsePZ85cn+YgxsjZBQC/kExxX0+vtLm01TD3pUR4JK6x9wNwzBtBww0xVT /E8WKEbC7IyCzDCOpPx7YvRr3Bh+qI1Cdw+LcAM3todUzX2QmX+wNMJ9gqIsQc+B/pVy k2a2EQ4aNJXwDheA1QEV8mQXvKu/s++Vhpnry2TgqSCFwTfqfoXpQ4vvOlzqteoVg0Hz +ldnatQ7lAMXa6NAVsVQIHh6fXN+Q0YJHltbDfv4y7tr8wFC1qkzPLmgUa2eeEDVg1I4 O6YXq4ajcS4gWM6XhSF0wjnk8WTjC3yJS1CHQISPKG+w+1SmYzC86lvzkNYZXy+DUduE ZoJA== X-Gm-Message-State: APjAAAVsXKtzsRtt5tdzEvU4ACdAa3EVkZDXUNksAeSL/k1zv6R4Zng/ SwopBDXR5esPnXbUEXH9YEofPTIgh48JOHVs/1NNag== X-Received: by 2002:a67:fc8c:: with SMTP id x12mr14799022vsp.96.1580249213890; Tue, 28 Jan 2020 14:06:53 -0800 (PST) MIME-Version: 1.0 References: <20200128020505.239349-1-abhishekpandit@chromium.org> In-Reply-To: From: Abhishek Pandit-Subedi Date: Tue, 28 Jan 2020 14:06:43 -0800 Message-ID: Subject: Re: [BlueZ PATCH v3 0/5] device: Allow devices to be marked as wake capable To: Luiz Augusto von Dentz Cc: Marcel Holtmann , Alain Michaud , "linux-bluetooth@vger.kernel.org" , chromeos-bluetooth-upstreaming@chromium.org 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 Luiz, It has not yet been merged in the kernel so please avoid merging for the time being. We also need to discuss what the management API for setting the wake capable needs to be called as well (I think we want to create a generic Set Device Params sort of management api). Abhishek On Tue, Jan 28, 2020 at 12:31 PM Luiz Augusto von Dentz wrote: > > Hi Abhishek, > > On Mon, Jan 27, 2020 at 6:05 PM Abhishek Pandit-Subedi > wrote: > > > > > > Hi bluez maintainers, > > > > This change accompanies changes in the kernel to mark HID devices as > > wake capable so they can wake the system from suspend. The > > implementation depends on the Set Wake Capable management operation. It > > is currently a separate management operation but it may be added as an > > extension to an exiting operand like add_device (need some feedback > > regarding this). > > > > Per request on the last patch, I've moved docs/mgmt-api.txt into its own > > patch so we can continue discussions on it. > > > > This change was tested with appropriate kernel changes on v4.19 > > (verified that HID devices were being marked as wake capable in the > > kernel). > > > > Thanks > > Abhishek > > > > Changes in v3: > > * Added profile_wake_support and made wake_capable dependent on it > > * Added documentation for WakeCapable > > * Mark HID device to support wake from suspend > > > > Changes in v2: > > * Separated docs/mgmt-api.txt into its own patch > > * Added dbus api "WakeCapable" to set value > > * Update device_set_wake_capable to be called by > > adapter_set_wake_capable_complete so we can emit property changed > > * Newly added to show whether device is wake capable > > * Removed automatically setting wake capable for HID devices > > > > Abhishek Pandit-Subedi (5): > > mgmt: Add docs for Set Wake Capable > > device: Allow device to be marked as wake capable > > client: Display wake capable property with info > > doc/device-api: Add WakeCapable > > input: Make HID devices wake capable > > > > client/main.c | 1 + > > doc/device-api.txt | 5 ++ > > doc/mgmt-api.txt | 19 +++++++ > > lib/mgmt.h | 9 ++++ > > profiles/input/device.c | 1 + > > profiles/input/hog.c | 1 + > > src/adapter.c | 65 ++++++++++++++++++++++ > > src/adapter.h | 2 + > > src/device.c | 116 ++++++++++++++++++++++++++++++++++++++++ > > src/device.h | 5 ++ > > 10 files changed, 224 insertions(+) > > > > -- > > 2.25.0.341.g760bfbb309-goog > > Other than the small comments I had this set is quite good, does the > kernel support has already been merged? > > -- > Luiz Augusto von Dentz