Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp161768ybb; Thu, 19 Mar 2020 18:52:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvJdQ0u6TlJS6Kce5+WhkguYn+Fo3+2hyPTGGrf2RtcW8s9Rg8IWcQNCkuQogy98wYbiOSp X-Received: by 2002:a9d:4e3:: with SMTP id 90mr4975525otm.261.1584669155540; Thu, 19 Mar 2020 18:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584669155; cv=none; d=google.com; s=arc-20160816; b=LYqGJlXtrYF75K7+/g6CX6cfB/aPPoFHNAdEkzsjmbE5UVCiotxvDsQjXp2q7wAt+8 xFN6nxd1IErAJAlIt88Kgzx2aK301g9vmcUivoxcrEgX/YfoxC2R6oXSL836P3RuXDRH lRv6lQu1S6NSv5Wfh4ASnog9O9VWmWYFexBf6k1Yq/31x+sD3C3aooM7H14H0vv102+8 GjjFKnPqukenDwkhaosOlgaqxDl6rgGy4pCfK38t5gWliKRe7MC7ZcM5pn3lAR3nBPn/ 2hgRffRSaFn92GulAb4QTJP4pup8GipqGoVIu+6W7+0hIhuKHNhwlmHql1Q7qdeJE5Ij /kVQ== 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=DfSSR55MLYDi3PSWtKuQhudT+yQxp3dfMZoaynRORc0=; b=Z55Zid6uBWdR6JRReMM+L+QkcCsfz75cZuEL74hXpn3Dq5t5qotPzBOFl/pupJqQC/ wXUAWF3YK6gPhFzbHCTueyo7nk47J0UmNWlr0XSMrAEC6O5gm664j05revUpbjahlb/K ILYKX7ySisBv9Fum/M2Yd4YyxBn6rxEBEA4MbsIVwAVpBzPNaBmJl13l9is20av06s68 i/MHnPZUrFngbfyyrP13oc2DvP9MkggBDd3b8rqU07w2AzCHPfzvJrGXXRUxWCeNoDHD UtKMFJyIZrFoNWPIp17czwRtTPW6UHHh6c8Jh6G9Fltb8lb7c6NVQpbOtFwUzDYrri7q 2+gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nN4ECh2v; 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 k3si1840354oib.82.2020.03.19.18.52.24; Thu, 19 Mar 2020 18:52:35 -0700 (PDT) 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=nN4ECh2v; 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 S1727297AbgCTBud (ORCPT + 99 others); Thu, 19 Mar 2020 21:50:33 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46670 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbgCTBuc (ORCPT ); Thu, 19 Mar 2020 21:50:32 -0400 Received: by mail-pl1-f196.google.com with SMTP id r3so1832990pls.13 for ; Thu, 19 Mar 2020 18:50:32 -0700 (PDT) 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=DfSSR55MLYDi3PSWtKuQhudT+yQxp3dfMZoaynRORc0=; b=nN4ECh2vEbK6E4nOaAfv8m3kF0O8q6jQr71Prf7fXog6jlgdDV95kXPcAfjYbLPFVx AWTngBBQJL443t4jrpyYllBtOtbqikx0GEtSh2iN9wI7KSxdHJizKNMpHrLAVTqRgs0m zH7pE1s0KoOOiuiA7yiWyEK06EpirH0v/gCpo= 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=DfSSR55MLYDi3PSWtKuQhudT+yQxp3dfMZoaynRORc0=; b=rMJlUcfIYd2T1w0BHqhfZDZX/dRThUuJtBuNglu8VgCSg4ZMy8qm6u0jaBX0PeK9dA nLPtovdFAcLtGD6HiRyEL5GWDwPVz83rkVVdBn39JZ1tLKvAkFwBxt/A4JDB8q178O+x UYEQUh5O/GrYSZrkuIThIcal2rSF8CUjPlEKgCXybDP8gDzvMEjHMs3NiIWC4iLd26SJ W1alGtJHBhC6NwkuKDkKgMYMFoK7atfpUcHkV8pjmxBfgNOgODx4V9hlD5X6fsQnjgZF jWBdvicOxsFpRFAqzm/bPN7LdK7R6gSHEzlGvunHG0mNHEBoSx1133zt2fvQTc3RTkie hmkw== X-Gm-Message-State: ANhLgQ02tnIvv7Tc+/rh3LZjEQzzGKOJ501uvMBUeforHvWuuatCj8aK Szuj+3JB7U8P1s7jtkxIiw8M1UB4s6k= X-Received: by 2002:a17:902:82c7:: with SMTP id u7mr1585982plz.10.1584669031576; Thu, 19 Mar 2020 18:50:31 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id 136sm3410485pgh.26.2020.03.19.18.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 18:50:31 -0700 (PDT) From: Abhishek Pandit-Subedi To: luiz.dentz@gmail.com, marcel@holtmann.org Cc: alainm@chromium.org, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi Subject: [BlueZ PATCH v4 5/5] input: Make HID devices support wake Date: Thu, 19 Mar 2020 18:50:23 -0700 Message-Id: <20200319185000.BlueZ.v4.5.Ie24be91b472c0a274606191bc4d14df030fe3598@changeid> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog In-Reply-To: <20200320015023.85896-1-abhishekpandit@chromium.org> References: <20200320015023.85896-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 v4: * Renamed device_set_profile_wake_support to just device_set_wake_support 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 d89da2d7c..d2a4ec82e 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -1402,6 +1402,7 @@ int input_device_register(struct btd_service *service) } btd_service_set_user_data(service, idev); + device_set_wake_support(device, true); return 0; } diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 327a1d1c3..0e4bd1c34 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -168,6 +168,7 @@ static int hog_probe(struct btd_service *service) return -EINVAL; btd_service_set_user_data(service, dev); + device_set_wake_support(device, true); return 0; } -- 2.25.1.696.g5e7596f4ac-goog