Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3502563ybi; Tue, 18 Jun 2019 01:43:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2hSyblGZ/5YWQlc+O7C62Lq6QjDxAj6i44A9v8wZgcNN4QS0umyw0AiXi55FZ29RFJpec X-Received: by 2002:a17:90a:8a84:: with SMTP id x4mr3747681pjn.105.1560847432843; Tue, 18 Jun 2019 01:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560847432; cv=none; d=google.com; s=arc-20160816; b=QP980PH7VM7OZSJAPKi2k7v+Gp+YMePIvgZYilRiXhJ8Bv9/t8z1BiHCeSDKoWkVnj 7HLuG5vpMKqgAqmcJ+vEnCtIjxOIWHjuWq4nOXLVYHXOyFCR2GVXgDacUc+StoAxvlmb VNTRZmRir6AMXex+1R5i/wVDMR9xGqRWrjeNu8pVqdCwFaLkLSFoOK8lWtGSfGFUw8Ha a4CGZ/6BtgrIGRM+rHUQiyTFYwgJ9bQ8MCmQverqecuZMSrTSxKRQxJcjV6v727tc7Az w4ej3xl6MppR5Emd/VKkIsvaE2V3Uf9TwcfBjA3OE+gT1w3wHTwKPTdd0yLWRK7yzt8Z k9Fg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=W5tEQomH9Ax8hg5M4UEC06MGU1BfI3vwoSEvigkAUug=; b=CPReZTSq3PRpk3obfP8WKK2zUqzb3u8bapaoNF2eetlm2YkITwj8LPK+oi5D3d2obo phyV3mqhoHL4QqOSk3diu1cX6ahUAtVsiXxugnM3NvOO7rgwH7txuxQ2NoCTRPkxdtiu XHue46VBsaCb4c/euxAgPq8OlbhiZ0o++1WLrVoqbVwpkOB5y7cLMaN0WhM8OkAfP+x2 ljI9uQXQiDhZl0fHNLWnlWeRb8gpSdQIsv7bXdZK4OvAgwQlN6TXafPA6lzzNnJ+nhQG 2P/hA7g5CyO6+s21StSpArWtR4mcAcwoCmVbufyFRW7muJx6Q6D+OaVHxkMrWWz/7vqW VXGw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si1610948pji.94.2019.06.18.01.43.34; Tue, 18 Jun 2019 01:43:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729228AbfFRIn1 (ORCPT + 99 others); Tue, 18 Jun 2019 04:43:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59876 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728818AbfFRIn0 (ORCPT ); Tue, 18 Jun 2019 04:43:26 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 7A25D26023F Subject: Re: [PATCH] Input: cros_ec_keyb: mask out extra flags in event_type To: Ting Shen , LKML Cc: Nicolas Boichat , Pi-Hsun Shih , Enrico Granata , Heiko Stuebner , Guenter Roeck , Brian Norris , Benson Leung , Dmitry Torokhov , linux-input@vger.kernel.org, Colin Ian King References: <20190614065438.142867-1-phoenixshen@chromium.org> From: Enric Balletbo i Serra Message-ID: <6a5c8385-6875-d999-a274-bbc592057934@collabora.com> Date: Tue, 18 Jun 2019 10:43:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190614065438.142867-1-phoenixshen@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/6/19 8:54, Ting Shen wrote: > http://crosreview.com/1341159 added a EC_MKBP_HAS_MORE_EVENTS flag to > the event_type field, the receiver side should mask out this extra bit when > processing the event. > > Signed-off-by: Ting Shen > > --- > > 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 d5600118159835..38cb6d82d8fe67 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) { > + switch (ckdev->ec->event_data.event_type & EC_MKBP_EVENT_TYPE_MASK) { > case EC_MKBP_EVENT_KEY_MATRIX: > pm_wakeup_event(ckdev->dev, 0); > > Applied for chrome-platform-5.3 Thanks, ~ Enric