Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp806849ybl; Tue, 28 Jan 2020 12:31:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwVmFzWRnhXfY6XHKnymANX6dKEkQFeyRuaFkdhcSFdpAK6lGT6dfBrs59M+1OpoZmRH8as X-Received: by 2002:a9d:7489:: with SMTP id t9mr9951135otk.205.1580243500748; Tue, 28 Jan 2020 12:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580243500; cv=none; d=google.com; s=arc-20160816; b=CVUZgKVZdO5lGetIrTP1tbopRK88buY/d2BEoS/mdEGb+YNjROXgW1tUlbpzcMreHI 0Ukk2Hv48v+xz9IEaJOtLuO0ketk0XYWsTLpi/ugReMbpaZp385sPoIZCvVQyfIr0y/k CLEzYFUUBpo8aAsvi8pnmpu1ucYsE07R79eJ6GKIhcz1ao6pu6/daUY+TTGX+7Mi/mFQ pfqzHeeBWO3NzXy0SPhc73s33eogs6PddBiJya7E5KJDFiVUG9YE+ZEmF0GcwhHWAW4P AjXuyBtG9I95U5kAp9KMD3aROWMMocGeVhvjSlNiJapZaPq0K5J0XCTvkSFrgli2sRgH zAwQ== 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=4rzSJ/zEsxngI3ZUM6NCNQhN1RyuO520Wvkse8L9qrE=; b=gNF0eyETfNTnpxPuCyikBZFv052jBDlAeJ38IK9FZOQh9bC57I9qpwgSUAQk5AbLH0 E7TLfUOl2qimaxyQ1q7UniyqB2INKNpMSOnFfaN1M3EHQuEcR2n0M5x8xaLKaBIHGUdj LoYXbHxlz9moBPtClqLSe+T4JrhIYJ3b3KgfUC4BHglvytvUIJLmqqHavHSdjGkb7J2n QTkFkyzIZUKjOxf4P5SMzUaFLGjvRMTn0aODmcOcG+bM5aDM+eYlnx9YzNQpKe9EBuGa 1nXb7P+kjWA+F3Xqvzptz6PS5hX7tJpHGxWfEpQbHQiCQ3xAgm/lc5/FL9EhVdMm4bDC N4Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=au20gHVh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si3317264oir.71.2020.01.28.12.31.27; Tue, 28 Jan 2020 12:31:40 -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=@gmail.com header.s=20161025 header.b=au20gHVh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgA1Ub0 (ORCPT + 99 others); Tue, 28 Jan 2020 15:31:26 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43318 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgA1UbZ (ORCPT ); Tue, 28 Jan 2020 15:31:25 -0500 Received: by mail-ot1-f66.google.com with SMTP id p8so13325290oth.10 for ; Tue, 28 Jan 2020 12:31:25 -0800 (PST) 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=4rzSJ/zEsxngI3ZUM6NCNQhN1RyuO520Wvkse8L9qrE=; b=au20gHVhidJI4KZeMASQYwCQ25MY8z7jAWl2eDhO9yvwfN0Q4iU3X2vTyw9DozLg3S vjrx7z0lsW6adSHzj0HJkOl6uQ6oo9vFlkbB5aK/tm3+NQ9O2yAG+yoMPFlQ6layxpLH NXYVf1QCeFaflqvC0brfWMPS9yEqlFpZnSR5OjceGXbbCbJFhAJ1fUvu7BYqNzz9U5M3 sO4OZ2hebiPO5/JKXVCNEW9eWvoh0Si8nwe8lTHxJY6yUezh8t+nv2AILCtYR4hgRtBC 7JO47sAih1/QEeBUzxMY5MMxt+0KUJN/L0UL1D8/gGpidHcMZ3e80DmCDq0EXm1nY1Hc cgvQ== 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=4rzSJ/zEsxngI3ZUM6NCNQhN1RyuO520Wvkse8L9qrE=; b=uD2P9qv35bTWNWxySRJ/ul46X+/630RrobYFYlOA4zz0/382uLucCYKGu8BDV0LOEk 97OWesMAg9/Kj1CJBew0BGJ3PwaM7HPszsu0RZEAmadE1lUgTSPNnh2AIUckhqsZVNnN QnjavFVxiROPSAn1lTyZZYM1yXlYiPI4GIqBkbemELoEui1Aapcbt2Spqifqu6CLugcp KQ7jbagLDky5kS3Eha49RPKfwzIqq3hxsSttYsU341UPqasKdUL2A4tovhoEFv7arC+y j/nOn6J/2Rkf2uKNjvvZqohi5oDY3DMP+6L1c8jTR2mMpeTATALm9zX/X0hiEU8uvWOi hZeg== X-Gm-Message-State: APjAAAWKApxbCFpsDWO1iyENY/yXkzmnzNsK5+NFjJ8dK1UFnO0570vA 4mGyHauT2jdasQaBqH0clG3bbKNKekAEnS+AqME= X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr10474045otq.79.1580243484938; Tue, 28 Jan 2020 12:31:24 -0800 (PST) MIME-Version: 1.0 References: <20200128020505.239349-1-abhishekpandit@chromium.org> In-Reply-To: <20200128020505.239349-1-abhishekpandit@chromium.org> From: Luiz Augusto von Dentz Date: Tue, 28 Jan 2020 12:31:12 -0800 Message-ID: Subject: Re: [BlueZ PATCH v3 0/5] device: Allow devices to be marked as wake capable To: Abhishek Pandit-Subedi 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 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