From patchwork Mon Sep 30 08:41:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erni Sri Satya Vennela X-Patchwork-Id: 831656 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDD0717C9B8; Mon, 30 Sep 2024 08:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727685713; cv=none; b=ayWS9SXVq5Lsz/9odKJ6qwHCyZubYma75Mdh8FuIzsM9rvl3I8gDbLJthBGOruDWEQldgpb6/iuwVsX/1XvlIV/5vTyQ+V8ax8UnWCqDLl780vJ0G+BlKRc3PFU5k+niVUMBmovr13Hk09MImwKMeyCuzHpFga77Vc5YeBX6a/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727685713; c=relaxed/simple; bh=mRQWu9Qi60Rm069HxpdDnlMKyQWzItHFvKHZXcTx8kI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=iEawM+GOZBkkXrbEvo6g+R0oyWLBeeyy+h6LplDlHUKa5EtbVCXgaYoJUkyENfk4ciop7fBCB5hk7vY8QWD2aaWQbfR2wSlzGMtT4uW7llYyTBNv7eTMS26Ogiewt4mxqOhoeNsPG4xdLT3/MnVspdGrawkuUQxNbM6HH7A7Rdk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=Akk4is6f; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="Akk4is6f" Received: by linux.microsoft.com (Postfix, from userid 1173) id 81FC120C8BD6; Mon, 30 Sep 2024 01:41:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 81FC120C8BD6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1727685711; bh=aJfcW+SnLrtO8B80Y7aKM3iIgHe2LRVFhMf8g7MibuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Akk4is6fo1xCKnukAIuetHfbzuDhbr5nYQexhH8SUKfnOGB0hliSjQwW/1oioFFMD a5T4YkzaFZX+fFw1s3PrnLn37wXiFnTKceKvJYG7UGfcRWzYOoN65AtxMnU63+FT1H VzRxEF2ayueWxq4fXYENh5AJBcwI6glH+jP1muEs= From: Erni Sri Satya Vennela To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, jikos@kernel.org, bentiss@kernel.org, dmitry.torokhov@gmail.com, mikelley@microsoft.com, linux-hyperv@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ernis@microsoft.com, Erni Sri Satya Vennela Subject: [PATCH v3 2/3] Revert "Input: hyperv-keyboard - register as a wakeup source" Date: Mon, 30 Sep 2024 01:41:47 -0700 Message-Id: <1727685708-3524-3-git-send-email-ernis@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1727685708-3524-1-git-send-email-ernis@linux.microsoft.com> References: <1727685708-3524-1-git-send-email-ernis@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This reverts commit 62238f3aadc9bc56da70100e19ec61b9f8d72a5f. Remove keyboard as wakeup source since Suspend-To-Idle feature is disabled. Signed-off-by: Erni Sri Satya Vennela --- drivers/input/serio/hyperv-keyboard.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c index 31d9dacd2fd1..b42c546636bf 100644 --- a/drivers/input/serio/hyperv-keyboard.c +++ b/drivers/input/serio/hyperv-keyboard.c @@ -162,15 +162,6 @@ static void hv_kbd_on_receive(struct hv_device *hv_dev, serio_interrupt(kbd_dev->hv_serio, scan_code, 0); } spin_unlock_irqrestore(&kbd_dev->lock, flags); - - /* - * Only trigger a wakeup on key down, otherwise - * "echo freeze > /sys/power/state" can't really enter the - * state because the Enter-UP can trigger a wakeup at once. - */ - if (!(info & IS_BREAK)) - pm_wakeup_hard_event(&hv_dev->device); - break; default: @@ -356,9 +347,6 @@ static int hv_kbd_probe(struct hv_device *hv_dev, goto err_close_vmbus; serio_register_port(kbd_dev->hv_serio); - - device_init_wakeup(&hv_dev->device, true); - return 0; err_close_vmbus: