From patchwork Tue Nov 5 22:26:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 11228897 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5EEA7112B for ; Tue, 5 Nov 2019 22:28:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 240052053B for ; Tue, 5 Nov 2019 22:28:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="D5foCbE5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730184AbfKEW2A (ORCPT ); Tue, 5 Nov 2019 17:28:00 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39440 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730523AbfKEW1M (ORCPT ); Tue, 5 Nov 2019 17:27:12 -0500 Received: by mail-pl1-f194.google.com with SMTP id o9so3692797plk.6 for ; Tue, 05 Nov 2019 14:27:11 -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=DhVYLzxUNaTO2eJtNvvu76dlTz9gLsrnk1niF8shIV0=; b=D5foCbE5j9OLfEzFyq4H1YMO0PGoPiIC+rP3EDdt4wK5cO7kKdWtvS2iZ1a58Emo77 T9FQanEXeiY3SWg+qj7Fb2Dac1naXkKbOOGQjsQdfvnkphTLwnfFZV5/Rv+MCDyUdt7s 5F+StfKV7mmDKS09Fii53Vhxv9ddJUlQd0rGU= 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=DhVYLzxUNaTO2eJtNvvu76dlTz9gLsrnk1niF8shIV0=; b=qM0CAkg0Fln/JfLwjiI4ZOZ7pm/UO/FVsLWON47Q/xIBkcozHDG7nWCAxARWP7L7l0 kCkLAcINVCzuaCALa5dQBUh8qViBFqNitg35jNDDF+dNOufORfxOiY+7cvgoeTWneoBO h4y7lnHMrXpYpde++F3rGY62rxXoyqnmFBb4qnvDtfQ4sntphavzHNHMM20iZTQFyu+F aQqb+pFyLAXq1ScLN0idqj/yrnrs4deCzCfQfdcvDzyR/G3D9g0liUJrudHY+lZippu0 n0Wmn5rqZonfuEN582QpcfXkE1pTQjRl+co2Cc5UPm+u0osSCGFeIUi/UwNxqIiORprB 3XCg== X-Gm-Message-State: APjAAAVuqh7Z03Wqz78PWEyxiIEyx59a95rz7lI8r33zXU/BhP6Xrp0N kr38RrExOiD+uCK7piWXoSg1og== X-Google-Smtp-Source: APXvYqxJoKLWcFreLAtY4FZfJFm2Lidgb1jQm2lRl5bmAx2ZiRuynxYeDgk0BQIlQmVt+CeIh+Lfzg== X-Received: by 2002:a17:902:fe8f:: with SMTP id x15mr7401709plm.343.1572992831230; Tue, 05 Nov 2019 14:27:11 -0800 (PST) Received: from localhost ([2620:15c:202:1:3c8f:512b:3522:dfaf]) by smtp.gmail.com with ESMTPSA id m15sm9589863pfh.19.2019.11.05.14.27.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2019 14:27:10 -0800 (PST) From: Gwendal Grignou To: briannorris@chromium.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, lee.jones@linaro.org, bleung@chromium.org, enric.balletbo@collabora.com, dianders@chromium.org, groeck@chromium.org, fabien.lahoudere@collabora.com Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Gwendal Grignou Subject: [PATCH v4 08/17] Revert "Input: cros_ec_keyb: mask out extra flags in event_type" Date: Tue, 5 Nov 2019 14:26:43 -0800 Message-Id: <20191105222652.70226-9-gwendal@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191105222652.70226-1-gwendal@chromium.org> References: <20191105222652.70226-1-gwendal@chromium.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This reverts commit d096aa3eb6045a6a475a0239f3471c59eedf3d61. This patch is not needed anymore since we clear EC_MKBP_HAS_MORE_EVENTS flag before calling the notifiers in patch "9d9518f5b52a (platform: chrome: cros_ec: handle MKBP more events flag)" Signed-off-by: Gwendal Grignou Acked-by: Dmitry Torokhov --- No changes in v4, v3. New to v2. drivers/input/keyboard/cros_ec_keyb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index a29e81fdf186..2b71c5a51f90 100644 --- a/drivers/input/keyboard/cros_ec_keyb.c +++ b/drivers/input/keyboard/cros_ec_keyb.c @@ -237,7 +237,7 @@ static int cros_ec_keyb_work(struct notifier_block *nb, if (queued_during_suspend && !device_may_wakeup(ckdev->dev)) return NOTIFY_OK; - switch (ckdev->ec->event_data.event_type & EC_MKBP_EVENT_TYPE_MASK) { + switch (ckdev->ec->event_data.event_type) { case EC_MKBP_EVENT_KEY_MATRIX: pm_wakeup_event(ckdev->dev, 0);