Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4164990ybl; Mon, 27 Jan 2020 18:07:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwwQEiqoH/8jKwXeoQKfV6+sIZVxDcniadgVQ/g/vnBukUyxdeJOpGQMMTTz4Cj9MbO2fwM X-Received: by 2002:a9d:7a47:: with SMTP id z7mr2695256otm.179.1580177224972; Mon, 27 Jan 2020 18:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580177224; cv=none; d=google.com; s=arc-20160816; b=uPew5TB0hdwMcnLU0LhkzyfYZBVafz+Vhhn9GHBVHbVuwpnvI5uxP9M6IIFyHNRYqP G8iqxtWb82hvqEwNFbvULlfolzSiaCFXIaNI5l0A4tPx5jp++GkzmH1JHs6nysI2T1GM m5mt/GLnOye45SF7eHjaJ6xUmiOX4C4qpMn4VYkLHYXd2vkQ0I3CaueiiA+B+WoJdjnD 08o43EKfY8qrZS2PO268zmODtR+Vdl0ArEFkMVW8xMHmrNwyyfbUwspa6kZdxB85pw2A rcyAVjXKSNXr9zaSwsHx4S/qrdyB1RWj7/3CjUtxMM+6SBrEf1m1ptXsbFvn/wgqYIEy 6sLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oCj9klxCDjWVY/P290XOa9mdXAkPIzZ1ulBexEdhvHw=; b=lRehsQSlAWpVC3oftsqwGO9ELQL4pLYC12/jXcblChuTjAu7NY1q+HJh8vSHZyTXSI IDUuieBsTA65KNMky7EwUV5pxspVk9G3+TSIsRTY0GaeR0o+xEQp3ACUJMOQBbaMDC0E oICprnvHzwoKH/deIMCYVvrqkz02mipa7NoZxNx4IkAiJFTwZrw7nxNDpBolBQ+ClQ0Q zPoXOKeRCBkKlbOkYVXn/eN/LvycP6L2lQp8B6L/GpFda8allMuGAxv0Fmu8oh8E9Cbo qBgzuXdYGDTFZ8D6v9TL4ILmlly/9/37qWJUJYNYfvmF1wbxkUZj2kvCS6ro8T/+FsEg crCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JOH6I4x3; 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 i12si8263721otl.74.2020.01.27.18.06.49; Mon, 27 Jan 2020 18:07:04 -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=JOH6I4x3; 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 S1726338AbgA1CFQ (ORCPT + 99 others); Mon, 27 Jan 2020 21:05:16 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:53569 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgA1CFQ (ORCPT ); Mon, 27 Jan 2020 21:05:16 -0500 Received: by mail-pj1-f67.google.com with SMTP id n96so306103pjc.3 for ; Mon, 27 Jan 2020 18:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oCj9klxCDjWVY/P290XOa9mdXAkPIzZ1ulBexEdhvHw=; b=JOH6I4x3sVvf+6Cw9n/XwCqNoTTAwcnQUcAHc1BesN8FeVDZjkh1vjMBo+05Hou4GU dq/Pe/3Ari06Y87ZRGDSRFXbfKRRyMDuHd9lRDDNYmFmsl6EI6rK+y8UjkpwTvm/l3JJ 5J52ZaLsWTb/gjI/XNd3CHtBbsENT8JsuzQPc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oCj9klxCDjWVY/P290XOa9mdXAkPIzZ1ulBexEdhvHw=; b=MZqkY3qRRWbmSXv1f/yXohyCWZW4B4RZEjNWBClESDvCwZM9+DDEHMC6+hvMb93UH0 59CG/rQK4+iinBUVtU8uMIcbwgedRqOz6ssrHt+70htFgbqD0+KGMxz2GadZXB+0NrLo nOUqyIce8uDFiw8/Ro0xgnGJjNM3odnAMd5QszOTOjaAvPta7aLWXfFrgCIavt3ZdT91 HDz9zaGRsLtM8JJf37lJS1IutW1b9Y4+Qp+75UwL1wLP1YuZwUbOs1dfTO2OFV2vQSfZ +y0gTHPa3JcugfgRfJ5xvxVzAB9jsMLE2PjC9W4O6UV8GgYe3jdYJhrEoalN5gRpHXLl h11g== X-Gm-Message-State: APjAAAXo7x9ehSgol4z/QTk7gZ5By1DZmTQOnznwHoz9I/wHv0uwr8AQ NKjr35Mu/P7M8clTM5HspVdsKg== X-Received: by 2002:a17:902:b212:: with SMTP id t18mr20078223plr.135.1580177115553; Mon, 27 Jan 2020 18:05:15 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id z19sm17119015pfn.49.2020.01.27.18.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 18:05:15 -0800 (PST) From: Abhishek Pandit-Subedi To: luiz.dentz@gmail.com, marcel@holtmann.org, alainm@chromium.org Cc: linux-bluetooth@vger.kernel.org, chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi Subject: [BlueZ PATCH v3 5/5] input: Make HID devices wake capable Date: Mon, 27 Jan 2020 18:05:05 -0800 Message-Id: <20200127180433.BlueZ.v3.5.Ie24be91b472c0a274606191bc4d14df030fe3598@changeid> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200128020505.239349-1-abhishekpandit@chromium.org> References: <20200128020505.239349-1-abhishekpandit@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org HID devices can wake the host from a suspended state. Mark the profiles to support wake when they are accepted. --- Changes in v3: * Mark HID device to support wake from suspend Changes in v2: None profiles/input/device.c | 1 + profiles/input/hog.c | 1 + 2 files changed, 2 insertions(+) diff --git a/profiles/input/device.c b/profiles/input/device.c index 2cb3811c8..e5865d098 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -1381,6 +1381,7 @@ int input_device_register(struct btd_service *service) } btd_service_set_user_data(service, idev); + device_set_profile_wake_support(device, true); return 0; } diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 83c017dcb..227facf97 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -159,6 +159,7 @@ static int hog_probe(struct btd_service *service) return -EINVAL; btd_service_set_user_data(service, dev); + device_set_profile_wake_support(device, true); return 0; } -- 2.25.0.341.g760bfbb309-goog