From patchwork Tue Mar 16 16:26:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 403500 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 E51A5C433DB for ; Tue, 16 Mar 2021 16:27:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1D666508E for ; Tue, 16 Mar 2021 16:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237372AbhCPQ0p (ORCPT ); Tue, 16 Mar 2021 12:26:45 -0400 Received: from mga04.intel.com ([192.55.52.120]:46736 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233841AbhCPQ0R (ORCPT ); Tue, 16 Mar 2021 12:26:17 -0400 IronPort-SDR: 6t5DSnbJYHtFzzxirXHQJ9EfuLSdPQUG6JLgHYy45N6i/72ecctXRhvLS0eDEmMoStQWsAGvph QUTOrJ8OuyMA== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="186913427" X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="186913427" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 09:26:12 -0700 IronPort-SDR: 2qLLJsDGkWR72qoEWfrVLtCFI6LpqOTVP6JlTx+cpoYY/3612EbuTRiIb7AL1BHam6lDUZyzkm g28CpJQ/o28A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="511431593" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 16 Mar 2021 09:26:11 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id BF2F82D8; Tue, 16 Mar 2021 18:26:23 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Jan Kiszka , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski Subject: [PATCH v4 0/2] gpio: sch: Interrupt support Date: Tue, 16 Mar 2021 18:26:11 +0200 Message-Id: <20210316162613.87710-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org I'm now struggling to test this on Intel Minnowboard (v1), but it seems not working and it's only one possible pin to test, so I have to take soldering iron in my hands and do some hardware hacks to test. Meanwhile I sent this in order to Jan to test on his side that everything is working on their platform. Changes in v4: - turned to GPIO core infrastructure of IRQ chip instantiation (Linus) - converted IRQ callbacks to use better APIs - use handle_bad_irq() as default handler and now I know why, see eb441337c714 ("gpio: pca953x: Set IRQ type when handle Intel Galileo Gen 2") for the real example what happens if it's preset to something meaningful - fixed remove stage (we have to remove SCI handler, which wasn't done in v3) Changes in v3 (https://lore.kernel.org/linux-gpio/cover.1574277614.git.jan.kiszka@siemens.com/T/#u): - split-up of the irq enabling patch as requested by Andy Jan Kiszka (2): gpio: sch: Add edge event support gpio: sch: Hook into ACPI SCI handler to catch GPIO edge events drivers/gpio/gpio-sch.c | 146 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 140 insertions(+), 6 deletions(-)