Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4276473ybc; Fri, 15 Nov 2019 01:54:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwTVSJNd79EI2+1P4PGnhk9iLHI+CxfikHamumWm0PO3BDOkyIMB2vkPmX+cIre0moUd5NT X-Received: by 2002:a17:906:da1d:: with SMTP id fi29mr12921079ejb.26.1573811669119; Fri, 15 Nov 2019 01:54:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573811669; cv=none; d=google.com; s=arc-20160816; b=Kptk4DxYSQi+dL+55bQ/3H6lSSnNlDQrSsjvHgfPqrE0PLPiBTnsB0boMz/IVHYCkC 79f3VRNbhHBSTazJTgmnpfofX+2H43TiOVxLdYnMyUdD8GLwuoi+kmxTIWqUi9/ezOZp dM5tJ3NmRamQ1Ny13hn4tNp1sJECyQVfkgHoHxBeHbfMeS5Gj6QpF0Z7Sp+Oe9rUazd+ EsB3SMV0+YNef3LvF5Gqyhoh9LRpz9XP35Q/LIRc1YIU6dvsMADU0YW0PKKSdd0/43DC 1qw3RlQjC3SiHNCo5t+1flsDUKo1y/6eXP5a+4GPp7LB8sktwEHStcaQTNUtxkX9EBFL 6r4w== 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=cfEOVKIJ8U0GfHedTM8uop95E6UnQcFBXP6PO2Xab/M=; b=kZo/lB8V7A6i9Hn8eSi/EbBtrK64KhcsPGoh/yONKjYzY2h40jCq3mwdvw0Pvypt/O UKx0ix92TVXbFNkPSNN0shkeVnoFbjSlSuZv4r8tvRk/DZEm4lRG79JTKY3y5kdQy4Nb n8YRIZ0oi/uTj78toVUe2DAh/jKtE+C22E8GwcER71ztoMHqXZHB+lmFO1s4X6ohWzbQ FDfocYotR6IvpK2Zgx39A9I2dTkgbEXKcjYuO0EUPY5V7+N/jHMIbn/F7XFrHm3cE/1t 9jXvnnnL8TxZspxpaQBZTsXOOltwOkTaY0XNUcAxlWLxLtcQi7eIgVahzvZdB8kIaPtt pDOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m2EFgUMs; 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 o19si5964256edz.393.2019.11.15.01.54.04; Fri, 15 Nov 2019 01:54:29 -0800 (PST) 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=m2EFgUMs; 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 S1727481AbfKOJv0 (ORCPT + 99 others); Fri, 15 Nov 2019 04:51:26 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33742 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbfKOJub (ORCPT ); Fri, 15 Nov 2019 04:50:31 -0500 Received: by mail-pl1-f194.google.com with SMTP id ay6so4315248plb.0 for ; Fri, 15 Nov 2019 01:50:30 -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=cfEOVKIJ8U0GfHedTM8uop95E6UnQcFBXP6PO2Xab/M=; b=m2EFgUMsdkyQYfBqNYpaO5s0oKfL1ugX3rEJQyR6V1NScny95WiRNhsA/pIgkhM6tE CRyBvyLsuKWFk6m9vb7ECHapzMYJBzFbYtCyNGu/f0ybVwgMi62LF48QEBPoqSbzN2Bi U/LX62BKdu5ckGKJLVx+AT82sogu83S90lNrI= 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=cfEOVKIJ8U0GfHedTM8uop95E6UnQcFBXP6PO2Xab/M=; b=OYY+ikPccjW5nEssB60Omi4vvbst22tNHkQN+lnf5Evg6tHbFOJs96wzR5jAjn+pxT t41DPnIPklvxqI5gglBNbjDN27EitM+e+BfwN3GroJzD++9axD/VniAzuPMcTF1fNrbG mOwUNtEoIiqJrVr7chdA42B5bs7G4F0Ufdx7lvPW7eoiNY5ji1YOvV6O1JXH3pN8srA6 neVfdvRkqtOfyN666dZFXNZ/jCrw5fiN0064zS9vC/DXw9nCM9fzrCVsT9v6cZRWndEf pZb9zbLtrIO2RxfINu+gSB+jnx/9ck+pho2/PU8EVHCHsZw9kRLBVvxYHxrcx199VkL+ X2rQ== X-Gm-Message-State: APjAAAXrB53nZv5gcIDmrj6MiVdJ1hTsGR1r5J1Nkv56pVSMYBkacUVe WPPrYMfD8YInl1lk3MGmgbVysQ== X-Received: by 2002:a17:902:aa42:: with SMTP id c2mr13953629plr.311.1573811430375; Fri, 15 Nov 2019 01:50:30 -0800 (PST) Received: from localhost ([2620:15c:202:1:3c8f:512b:3522:dfaf]) by smtp.gmail.com with ESMTPSA id i32sm8317366pgl.73.2019.11.15.01.50.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Nov 2019 01:50:29 -0800 (PST) From: Gwendal Grignou To: dmitry.torokhov@gmail.com, groeck@chromium.org, 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, fabien.lahoudere@collabora.com Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, Gwendal Grignou Subject: [PATCH v5 07/18] Revert "Input: cros_ec_keyb - add back missing mask for event_type" Date: Fri, 15 Nov 2019 01:34:01 -0800 Message-Id: <20191115093412.144922-8-gwendal@chromium.org> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog In-Reply-To: <20191115093412.144922-1-gwendal@chromium.org> References: <20191115093412.144922-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 Acked-by: Dmitry Torokhov --- No changes in v5, v4, v3. 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 8d4d9786cc74..a29e81fdf186 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.24.0.432.g9d3f5f5b63-goog