Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp575314yba; Wed, 3 Apr 2019 14:50:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZJYkwGVulABx4O7S75INrfn2d/Z7yMu3t1Sg/YiOV+0RxQVtcfL+Y7VV48yNNcNE7Hnc9 X-Received: by 2002:a17:902:758d:: with SMTP id j13mr2474257pll.44.1554328215032; Wed, 03 Apr 2019 14:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554328215; cv=none; d=google.com; s=arc-20160816; b=JqEjaJKMC54Wzg3JSMojv8l00aKfb43od5otP4TH4qMzPWSOUS1Pcs9YNpGIvjUd7l u++W0/huQR0E3z2r43eaBzbivazhCZuQp8Tt3TplHugYJ6SKYgDyjFEFKe/PvK+N+Qcl T4vZ/1k/uOlS5r8NIFPhMr59c4ZwRC6a8WmJbttIsqXnwwFH5dsgffoSdWEOclPQSPjx YkOQU4urBe+WgL+ces6Dc2vbsa1Juw92DkAkIyMwI+YGwFVQsBjROpeECEqROgrlKED8 JnRzz3O/mzCbkH5hFFWMNVVawTi6x/L+VaPw5WJMCZEDYEQ0f8patxtIB+6S2sEP3rb4 exjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mefDxBoY6SHqSsgjKwgG2ujnOfgIpSAFiSRrCr9D8aM=; b=cNeQQl9shhx+kZZXPk6/5HeYYNn4tcZeIUZvXBxwvzpccx+eLX9iCwwO+RCwF1f/Qe ybzqsLvD6MKRS4dcJ2od6azySmhSrsL+/UGiluFpRZHpcZfXt5fiymzz0+c2mZ58MfZ7 rcqbwQlInJm8lb4c5y/8rELlqNbCR/HywLfav9WUcCIXW+AhbKW9FRJcLfwk49UuysVI TQ+cCroR+UW51XRWLEvTeaD2FnP8WKCHu67cRpBX3irS+G5RPZ5XoRFIRvN6vU8iYowx tZgKM+Zo8wWlRLLeDIWvDpgTjQWZv64aRs1vPftquyviH6DAjEancYHM19LtG6NrWPT1 J3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e6GyP2on; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si14437812plo.118.2019.04.03.14.49.46; Wed, 03 Apr 2019 14:50:15 -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=@gmail.com header.s=20161025 header.b=e6GyP2on; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbfDCVsq (ORCPT + 99 others); Wed, 3 Apr 2019 17:48:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38553 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfDCVsp (ORCPT ); Wed, 3 Apr 2019 17:48:45 -0400 Received: by mail-pg1-f193.google.com with SMTP id j26so135282pgl.5; Wed, 03 Apr 2019 14:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mefDxBoY6SHqSsgjKwgG2ujnOfgIpSAFiSRrCr9D8aM=; b=e6GyP2onWGtCr20hs+YIzz+Glia9JV0m18J8bd7WPIYAXWqnPggZDg3sAqrDmR7vb8 fnmKpfCeMjWWc/Gk0M0gFdyKOCuL7Mgyldipr24p7NLmL/HZRoT9fhVEmGkEi5Jyjt7r Wc10g8tXIIH9ZipahIHzFPz8AQwYv28YHETv8Zb9T+9PtoBtBvLZo3Cz+9MbirkTPQC7 9JYUlkJvx9JXrV+7Z6bBQaMpycncJkscY4y19mGHQb0br9DddG0niHhg5CNbUqIAjHqa 46/LzJBtJlOX25UcFRXyrsLbE68yoPqZPEOE8b6i34YqdmHh6H6WUBNqgS4vHBU+e2vB MbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mefDxBoY6SHqSsgjKwgG2ujnOfgIpSAFiSRrCr9D8aM=; b=HZ3jRXFDwmv1M2gOaBEOqAM3jh6cuL8PxDQL4Bk4ERAFB2h38n9i4A5mSOYmH6ZXJm 7IW9VXXcc/TMNe7R230MNZX8QdgprGwgbqSut3LZLz5MzLiP0+gEq+rApi+D/RESuPCM hiQZnZ6RJnn3KwZmS5kYwpib/HnsPKxTCK4UyXLMeq8rr1BsrD8ofvHfKAaca+H+MyDH R17TkbEh08Rkd5Mgo8tmV4SlGHAFOyg86VFWtsdEloO1ASC5P9DcMozqnNZWTKm0qcBk h1jTerW0Hjd5ChnBvkZvEdn2lMywncx8Xpxv+wOpB3lXH63A34XAxY9YioWh//A/UFHN gGwQ== X-Gm-Message-State: APjAAAVdhTz32AzJT/YtEfeQlb/ZiTn8a2qQ7MG3OlXMYKWl3c7uPV/I Pi9XJMCuszwHyynj6wo4cn0= X-Received: by 2002:a63:5e43:: with SMTP id s64mr1959818pgb.15.1554328124712; Wed, 03 Apr 2019 14:48:44 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id 20sm23119449pfn.131.2019.04.03.14.48.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 14:48:43 -0700 (PDT) Date: Wed, 3 Apr 2019 14:48:42 -0700 From: "dmitry.torokhov@gmail.com" To: Anson Huang Cc: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-input@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 1/2] input: keyboard: imx: no need to control interrupt status in event check Message-ID: <20190403214842.GD53104@dtor-ws> References: <1553842562-8481-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553842562-8481-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On Fri, Mar 29, 2019 at 07:00:43AM +0000, Anson Huang wrote: > There is no need to enable release interrupt and disable depress > interrupt in event check, as a timer is setup for checking these > events rather than interrupts. But won't using release interrupt allow signalling key release earlier? > > Signed-off-by: Anson Huang > --- > drivers/input/keyboard/imx_keypad.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/imx_keypad.c > index 539cb67..7e32c36 100644 > --- a/drivers/input/keyboard/imx_keypad.c > +++ b/drivers/input/keyboard/imx_keypad.c > @@ -276,11 +276,6 @@ static void imx_keypad_check_for_events(struct timer_list *t) > reg_val = readw(keypad->mmio_base + KPSR); > reg_val |= KBD_STAT_KPKR | KBD_STAT_KRSS; > writew(reg_val, keypad->mmio_base + KPSR); > - > - reg_val = readw(keypad->mmio_base + KPSR); > - reg_val |= KBD_STAT_KRIE; > - reg_val &= ~KBD_STAT_KDIE; > - writew(reg_val, keypad->mmio_base + KPSR); > } > } > > -- > 2.7.4 > Thanks. -- Dmitry