From patchwork Thu Jan 25 13:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 767053 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 489C04F61E; Thu, 25 Jan 2024 13:37:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706189869; cv=none; b=urgctFj+b1X0OhDV0wRGWVq6z8EnUPxRa2a8xK+ZDrLHJitbNhnwg7LMtYf0GxghVu7uuJSbbsoTh+yafu1XtX404SqHJ/XajH74BkV8qrpvKfpLFdpMnwjBEVumVVbhV/Shau1uiP8U1oN3fyelHLrKCuwZTyo40WWUzk3+E9Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706189869; c=relaxed/simple; bh=vNX5J1BNoN/oAmge8GNeHC9GvvNw97+uOXAjoi/WzK4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=n8hpOw4PDlA/kBuBuGyD/84vAfbAXsjLmFT4i7XtY7r+UW1E6h/TlWiHTfuM8RS3f12BkVDjO1zunFUiDHxzYAFasxVjsEzyiyMhjvA3DhXgDK6hyICLTATF63W2f6OW+Brl7re6B1mArTVODP2WZHY7B+y/9wSNNBuKm8hubaw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.05,216,1701097200"; d="scan'208";a="191712562" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Jan 2024 22:37:39 +0900 Received: from localhost.localdomain (unknown [10.226.92.215]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id B8CED42C93AB; Thu, 25 Jan 2024 22:37:36 +0900 (JST) From: Biju Das To: Dmitry Torokhov Cc: Biju Das , Support Opensource , linux-input@vger.kernel.org, Geert Uytterhoeven , Prabhakar Mahadev Lad , Biju Das , linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 0/3] Add polling support for DA9063 onkey driver Date: Thu, 25 Jan 2024 13:37:30 +0000 Message-Id: <20240125133733.95081-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On some platforms (eg: RZ/{G2UL,Five} SMARC EVK), there is no onkey IRQ populated by default. This patch series aims to add polling support. v2->v3: * Created patch#1 and patch#2 for removing work. * Updated commit description as cleanup is done in patch#1 * Dropped scheduling work instead start using polling as in the polling * case scheduling any additional works will create confused state for * driver if we repeatedly open and close input device. v1->v2: * Updated commit description * Fixed the logical mistake for optional IRQ handling. Biju Das (3): Input: da9063_onkey - Add da9063_onkey_report_key() Input: da9063_onkey - Drop scheduling work Input: da9063_onkey - Add polling support drivers/input/misc/da9063_onkey.c | 130 +++++++++++++++++++----------- 1 file changed, 82 insertions(+), 48 deletions(-)