From patchwork Wed Jan 6 12:58:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 12001509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADF5FC433E0 for ; Wed, 6 Jan 2021 12:59:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7977123100 for ; Wed, 6 Jan 2021 12:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbhAFM7N (ORCPT ); Wed, 6 Jan 2021 07:59:13 -0500 Received: from muru.com ([72.249.23.125]:40986 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbhAFM7N (ORCPT ); Wed, 6 Jan 2021 07:59:13 -0500 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 1F80A80AF; Wed, 6 Jan 2021 12:58:51 +0000 (UTC) From: Tony Lindgren To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Arthur Demchenkov , Carl Philipp Klemm , Merlijn Wajer , Pavel Machek , Sebastian Reichel , ruleh Subject: [PATCHv4 0/4] Lost key-up interrupt handling for omap4-keypad Date: Wed, 6 Jan 2021 14:58:18 +0200 Message-Id: <20210106125822.31315-1-tony@atomide.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hi, This series updates omap4-keypad to disable unused long interrupts, and implements the missing parts for the lost key-up interrupt quirk as described in the silicon errata pdf. It also simplifies the probe to use devm. Regards, Tony Changes since v3: - Use PM runtime to check the last pressed key is not stuck - Simplify probe with devm Changes since v2: - Drop bogus level change, that already comes from device tree - Scan keyboard in two phases and simplify using a bitmask - Use mod_delayed_work and cancel_delayed_work_sync for the quirk Tony Lindgren (4): Input: omap4-keypad - disable unused long interrupts Input: omap4-keypad - scan keys in two phases and simplify with bitmask Input: omap4-keypad - use PM runtime to check keys for errata Input: omap4-keypad - simplify probe with devm drivers/input/keyboard/omap4-keypad.c | 255 +++++++++++++++++--------- 1 file changed, 170 insertions(+), 85 deletions(-)