Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1378415pxb; Wed, 4 Nov 2020 07:27:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI4kXf9loyKl5Q9JtPlZ+sp+gHIOaaDN7vDvnA2LCNbE4nJ+BBOYapjxHesY6c3UAzXgzY X-Received: by 2002:a05:6402:1615:: with SMTP id f21mr28616574edv.257.1604503622830; Wed, 04 Nov 2020 07:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604503622; cv=none; d=google.com; s=arc-20160816; b=rzLxi2e5tDK6m0xyvRZw9cJyKOvN5i9TCVUaKyQsl8Al7pbwelMkEpXYLrLMK2XFeJ zh45o80ZcSGVB1LeUibjG7uWa61cEnnXYBMKRpDJfSHDSi8pqy8sAGyg3da4MuB1h6OM 8iwBO44fd5wzGhye8K++5RrhSc04kIpi20MgjEOP1xUdp6kH+e0SA/wiIfAMpcLPSfnq UtP1JMcazIzhu0+Ah4FkF5xXY1Z99mP331vRH0dF//Wh5k/EjavIXpOTgsS4+oxlNZBB L/GqtjZC6sKXZOp/wKLPdY9H7WkKTeZo5bMK26IuNWPXuzJymjAInCVgHDP3JpUb1pPC OLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hQuHwpO9W6EfVdvEexDpXK2yxO3fyCBXGcRXbSH1WmI=; b=xFpzlYyBKlCXkTn6GDznmVP3ktjp4p4n923kC0s6PhE2E4c2rVB1jgwaeG9RON1oUg AI5Yuth2bXOoh4Rh2HuaQUJvH4/imDdRCR8AI6tpyhyNf/qQXtw2zZrh7nLypZWuq9zh na9hmtDwc3Po+K6/xrM1+gLkYkwb7JveyGpqZkT0RqqkB7d7ceMKBZm5xInoEg3Z+C3V M47zkCKN5Y2MHgX+Mlkusq6y8z3/dDMFTGZ64wZnDrDzIe5AN1acNHMZAMVgiutD+8j9 pzC9u2AcFqbvDINMuVXshk46/b1ATWZJRzh0Ulo8g8Xq3BE/PLotLhS6DE0MTdnCJTsh fllw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c38nYRy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j10si1812812ejs.686.2020.11.04.07.26.39; Wed, 04 Nov 2020 07:27:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c38nYRy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730362AbgKDPZS (ORCPT + 99 others); Wed, 4 Nov 2020 10:25:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbgKDPZQ (ORCPT ); Wed, 4 Nov 2020 10:25:16 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D22C0613D4; Wed, 4 Nov 2020 07:25:15 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id c18so2742365wme.2; Wed, 04 Nov 2020 07:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hQuHwpO9W6EfVdvEexDpXK2yxO3fyCBXGcRXbSH1WmI=; b=c38nYRy676SWec7f0EgQa52uS8Ebi+3J8uKzCJQDk9gB5bpQhQ4e5F2bGhFHdPfjf0 xBEYxSsef4gaiiPl2cYqP0AfmUpoyzU8eJfRIepZqsFPxO+O4D1eEK9FyHXYOHz128cl 9YYlLHiLwX5G31vpL9fcDVxPPGBkR0Rn8EUSm7bzwBH8u2vhf/2XEO3Qh77nybmF85Wy Zz+7L9LeU9oXaJ2MVTR0ajbe8+O3g2dB5x8EM3NwHq539FkQtZ5rfgqdLwB2EE0up2rb 1kDiiJn2uHvSbP58nUQhwI51TykfBq9Suj0Wcz9VoEewhIhii6OkIdecwLSX+NPhGkIp zzhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hQuHwpO9W6EfVdvEexDpXK2yxO3fyCBXGcRXbSH1WmI=; b=iOu9guYMNhSCXvNd2UJZfqxHWjGVBzImQqrFgbW4BZfsQ8VqqCCy8Lq2Hngofw8I6d onbaDZMKnwiyiuSJMDJjQMmi9m2IX5hnA6MvQRPyMLHqeBYa8R1M0XEfl8yVhvwY8jJr eozgfbhAIFdVp8/s0X8EYgIvejo1nSPHYj4Bftq9BfotqvpEg7E6QbrchMZ45y4GQ7Uw XihA5R4Nrsjrzkt4IvejU7YfcRQU5o3OaAWKWq02Qg7VSL3zxqMGQAf4gEWcKuZi2AF9 lzLtv58ZKmiVD5Zq+edbEIiTpvvxElm90vdDax9rtuzk+NeBqDJ4bP+pLpP2pJAf+Dnl TgMA== X-Gm-Message-State: AOAM531dKlv5GEM2DngNY51bJRMXVe/Z0SsICyUDxGVBCjoxfo/fPo25 WRshAHu8uFXUqk4L9log/Dk= X-Received: by 2002:a7b:cb46:: with SMTP id v6mr5142035wmj.146.1604503513917; Wed, 04 Nov 2020 07:25:13 -0800 (PST) Received: from srv-dev.mgt.openheadend.tv (aob-ovh-4.easytools.tv. [51.210.1.153]) by smtp.gmail.com with ESMTPSA id t2sm3050077wrw.95.2020.11.04.07.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 07:25:13 -0800 (PST) From: Arnaud de Turckheim To: linus.walleij@linaro.org Cc: bgolaszewski@baylibre.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, vilhelm.gray@gmail.com, Arnaud de Turckheim Subject: [PATCH 0/3] gpio: pcie-idio-24: Fix IRQ handling Date: Wed, 4 Nov 2020 16:24:52 +0100 Message-Id: <20201104152455.40627-1-quarium@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set fixes the irq_mask/irq_unmask functions and enables the PLX PEX8311 local interrupts. With the current version of the driver, gpiomon (from libgpiod) or a poll(2) on the sysfs value are not working. According to /proc/interrupts, there is no interruption triggered. The main issue is that the local interrupts are not forwarded by the PEX8311 to the PCI. There is also two bugs: - The IRQ mask is not correctly updated when unmasking an interruption. - The COS Enable Register value is not correctly updated when masking/unmasking an interruption. It seems this problems exist since the initial commit. Arnaud de Turckheim (3): gpio: pcie-idio-24: Fix irq mask when masking gpio: pcie-idio-24: Fix IRQ Enable Register value gpio: pcie-idio-24: Enable PEX8311 interrupts drivers/gpio/gpio-pcie-idio-24.c | 62 ++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 6 deletions(-) -- 2.25.1