Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3840061ybg; Sun, 20 Oct 2019 22:58:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWY97dA3Gw4Df8WbAWmrRfXaCbANt0cr0+cKeX9qXWSZBl6lO36O7felA4YPDH8/NIvK2K X-Received: by 2002:a05:6402:1b8a:: with SMTP id cc10mr23549013edb.202.1571637529514; Sun, 20 Oct 2019 22:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571637529; cv=none; d=google.com; s=arc-20160816; b=afWgFXMfGAVy5Jl/wH5cKWEZi937XD+wxME7piFbAs679Xh4923SHGV6YYJszAUbgL Me/0UujNF0DJrNof4PcGeA831RT6Tuhd+PQPz3+S0tyWxvOTnK3DOJ/fhZaF7KpJWz04 rG1oDDhk8369vxPIO1GrxuPVhAplH7p/EoYtc81E423zGp6cetnIsrFut/8rcmIc2VQL xHKO4SzgmnXbAUW/jyuQFYj+nCmXB9yEPhiP4WzubDrkUUxRdcq7N5Fuk5LPnR2xZkNM zLtOlAUILQDG2003IGt5pnGSzDYR3Z5zAufaLXcY/MeyTMry9XhZ9g8WTgrco/bBNelS hb6A== 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=hX0C6B+JnRorkRcAH+QZtlo4gKeiA3mE2oXHCalaLuk=; b=A9StakSPk9GaNB+00bM8SW+IZk8ayPMV0tsn5QdGWO9dHec/gLyZps17VIF6M05EHh VdIhDMFN8GNVookYX8vuAiVovmoOgXAHabSOQhCwLmoRZmtA3u7y9FOoV4ZdoXd5JLLj H77rGajvRyNY++jtroC+5vymeGJaWr8Cog+/sjRzh3/RjN63oQpd0qxVRUg34E5fPDkL OdPdlDfIZTyHXG1jDEoEgpLml2I9+qZSOpXmi4RLR3s/wkEPlZKQSBKDhnSbpJpA0e5F RxnGuQB4gCIjVsa6gk9oR94Cr4aA83ASfUEhQrQDGtJGt0dh0ZSXpbHgbvIgZpXDZLOc 42JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dcTyKTJX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 x26si746855edd.287.2019.10.20.22.58.26; Sun, 20 Oct 2019 22:58:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=dcTyKTJX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727447AbfJUFzK (ORCPT + 99 others); Mon, 21 Oct 2019 01:55:10 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44335 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbfJUFyZ (ORCPT ); Mon, 21 Oct 2019 01:54:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id q21so7681160pfn.11 for ; Sun, 20 Oct 2019 22:54:25 -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=hX0C6B+JnRorkRcAH+QZtlo4gKeiA3mE2oXHCalaLuk=; b=dcTyKTJX2xKLB4Zw2xVpiQuOXNlCEBWCedHV+KVgVKnlKxoXdQNW/gJaKSzFkiCiDR 6CLZrsO+TYjy4Jc2eBIjqX9+s6z+UroT5wYzzC3A/j14pOlaExYTTOIhtW+/PdqSvd9L jyI3g70DvS9e6vPZt2biPYx7Z0aCPrmQVZzWQ= 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=hX0C6B+JnRorkRcAH+QZtlo4gKeiA3mE2oXHCalaLuk=; b=EcxOlVERLwKiDrA/KZvMci7HUYnPkllKylpo7hFzq7cskAdN0pEs4Q/rb4zJNUnENE NAgt3YaHUOQc1qA8O5t2KQB0KN3rKZiuA1QR71uzOuuyFMAd37yIz2NSfbxGgb0CQk4x yxyeh8e2m1IyTsA/k75P8VC6HXSPCrlE2MR1hZ87eczOVvdS0r8U7wkjtC7HZw2T9vYg DceYir8tf5oTDeJ/Ot+32u93a8948hV7KtpOq9i+637S96J2Bd31AtnaF2a+Dn9I+Egn jmt7LE9q4VPS9G9dseSJs3lmxEuDDDIlRfnEC5CjvhseCoiVLrqqgirYGK8N/SSNlue7 NkSg== X-Gm-Message-State: APjAAAVC0a9l3WkVy3tFdCKJrMVr/k9upKVbBKWLWrtwpkbswkNzDprZ MiqKgFVkh8rR/TmgBz2ISVoDKQ== X-Received: by 2002:a63:f34f:: with SMTP id t15mr24512541pgj.453.1571637264657; Sun, 20 Oct 2019 22:54:24 -0700 (PDT) Received: from localhost ([2620:15c:202:1:3c8f:512b:3522:dfaf]) by smtp.gmail.com with ESMTPSA id g35sm12964961pgl.27.2019.10.20.22.54.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2019 22:54:24 -0700 (PDT) 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 v2 08/18] Revert "Input: cros_ec_keyb - add back missing mask for event_type" Date: Sun, 20 Oct 2019 22:53:53 -0700 Message-Id: <20191021055403.67849-9-gwendal@chromium.org> X-Mailer: git-send-email 2.23.0.866.gb869b98d4c-goog In-Reply-To: <20191021055403.67849-1-gwendal@chromium.org> References: <20191021055403.67849-1-gwendal@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 62c3801619e16b68a37ea899b76572145dfe41c9. 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 --- New to v2. drivers/input/keyboard/cros_ec_keyb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index 8d4d9786cc745..a29e81fdf1861 100644 --- a/drivers/input/keyboard/cros_ec_keyb.c +++ b/drivers/input/keyboard/cros_ec_keyb.c @@ -226,8 +226,6 @@ static int cros_ec_keyb_work(struct notifier_block *nb, { struct cros_ec_keyb *ckdev = container_of(nb, struct cros_ec_keyb, notifier); - uint8_t mkbp_event_type = ckdev->ec->event_data.event_type & - EC_MKBP_EVENT_TYPE_MASK; u32 val; unsigned int ev_type; @@ -239,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 (mkbp_event_type) { + switch (ckdev->ec->event_data.event_type & EC_MKBP_EVENT_TYPE_MASK) { case EC_MKBP_EVENT_KEY_MATRIX: pm_wakeup_event(ckdev->dev, 0); @@ -266,7 +264,7 @@ static int cros_ec_keyb_work(struct notifier_block *nb, case EC_MKBP_EVENT_SWITCH: pm_wakeup_event(ckdev->dev, 0); - if (mkbp_event_type == EC_MKBP_EVENT_BUTTON) { + if (ckdev->ec->event_data.event_type == EC_MKBP_EVENT_BUTTON) { val = get_unaligned_le32( &ckdev->ec->event_data.data.buttons); ev_type = EV_KEY; -- 2.23.0.866.gb869b98d4c-goog