Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9517026ybl; Fri, 17 Jan 2020 13:29:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxDCkJuu1CbAcUhh0T7aYNz+gUEJOOcodFX8ivv35BArH7xuPTUvBzX8KXZiWSGoaJwIQTv X-Received: by 2002:a9d:e83:: with SMTP id 3mr7616982otj.218.1579296572064; Fri, 17 Jan 2020 13:29:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579296572; cv=none; d=google.com; s=arc-20160816; b=Tmc3+8vetzEfKd+qgsuRkj7/OKL64d61DL1zRpjDk7EVbUavpV0wOT+yenV4S3cD08 29aUmDSa9/8ro2icrAcB/dLbOK1GIohTGrjkXcRoNgJQ+nhS2JPVPXBUBb+bK7eT3RNH oZbWCjnIM9RgLCVivrFePvqBnT/cPPkiWoGQ1zOqsYD5Agi49Xa8WfMv09lPm8SBg6Ql 48tuh+8PDg5TmM6G7GIIm7+l9UTCHwB/+03gXOVkTaTbmJOKjjJa/uNRJ1uqKzx9U/30 7pXuDbl/ni5N+NOoR98o9x8eF9FubC0KXXfEB9qx1wfZhGZ6v0RgoR5CWfQ/fLQbYn6v 6yBg== 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=9y9il0kC93JGG3FVJiBkjdDB4nyw3/7Pni/iIyZYTnI=; b=ZLFdXyEO90OCNTkRDfVlHPi6XW9xPJb41KBSrR716X/uAOAG0+sa7YBHo95x8DSE2J ssryo/ak9lrM8xYsbgtgCFJG/IET5hgCrOeQm202oNUH/7wbx+H76BypEbqM/is/TVwB D7hURWSGS28El+dLOoIYbC5Nzh4+uBuctygMVlHbC60F8eveZUIukNaRlgFFJ8Cfj+Wx Ek7aXazHyQMR48ZuHWfHJ6kUu2F4NsMqSjhKKJtDTj0KxBpMkzBP6ZAVF4wPGMKarZcq BUU86PAePZcYKqteXLJ4n/YZp60w6tl/g7MSOBkWVkNiLxRTBuc1Vm/Gn2pIThr3SP5K KqdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AsxFrYOx; 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 n11si14628383otk.290.2020.01.17.13.29.21; Fri, 17 Jan 2020 13:29:32 -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=AsxFrYOx; 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 S1728811AbgAQV2T (ORCPT + 99 others); Fri, 17 Jan 2020 16:28:19 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:38900 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbgAQV2S (ORCPT ); Fri, 17 Jan 2020 16:28:18 -0500 Received: by mail-pj1-f65.google.com with SMTP id l35so3894360pje.3 for ; Fri, 17 Jan 2020 13:28:18 -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=9y9il0kC93JGG3FVJiBkjdDB4nyw3/7Pni/iIyZYTnI=; b=AsxFrYOxg7STkCo3KJfJvcyI/P5MkO4H3t+0m6ELJoZiVK3MprOu5DQiuF2FPPQw93 aWcA6im7u61eQEZEijOfJXY2/UWt/sv3hFVKYw1ICplQiwmLdbH/nRvoLb5HCZVwx2HR Bg1aqxCa+Kbp4vhSsCAyku5zC80vmq3DUEPws= 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=9y9il0kC93JGG3FVJiBkjdDB4nyw3/7Pni/iIyZYTnI=; b=iYUK4gUVJPSUofqVBGPkTORSprTS6qz1sWs02N9PFCm+W74HKHjT1/BlNpVJZTRGiY UohY6opxb6auXau6n9CtA2cgYf+EfYcljc8IhiwurBhuunwDu8+Djh8tHDJDFCr282rF P9z3yJuqSdj1w65NGgcgnTNSxLur1MeBwyPDm9dvFulROLATm726UYwMt/o/9ZR0UedF 2enhUt5hwSMJm8s12PkPmZpBWmAwnwYVXUiT9YMyc4vMEwBMN4jMc2bdL8UlrLYF4npb 2lDYaZu9I0j3vVxeYayrVemfvuZUTxBDTfoN8G1hFatOvNEZXu01kKlyjt12szsw9+0h 67Uw== X-Gm-Message-State: APjAAAXG7Io11SmPVvbDZIfYMIqR6+KAXc89ndSIEJ3RtWV+Lxdan4Ki 4QUHw8uXHaAZjAlswqrMiQqvqA== X-Received: by 2002:a17:90a:5215:: with SMTP id v21mr8405134pjh.31.1579296498265; Fri, 17 Jan 2020 13:28:18 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id j20sm29938790pfe.168.2020.01.17.13.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 13:28:17 -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 2/2] input: Make HID devices wake capable Date: Fri, 17 Jan 2020 13:28:13 -0800 Message-Id: <20200117132754.BlueZ.2.Ie24be91b472c0a274606191bc4d14df030fe3598@changeid> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200117132754.BlueZ.1.I56a225147d9cabef55f94b57129a5e37ea79d165@changeid> References: <20200117132754.BlueZ.1.I56a225147d9cabef55f94b57129a5e37ea79d165@changeid> 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 them as wake capable when they are accepted. --- 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..a6b0e8053 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_wake_capable(device, true); return 0; } diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 83c017dcb..8627f3557 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_wake_capable(device, true); return 0; } -- 2.25.0.341.g760bfbb309-goog