From patchwork Mon May 27 11:27:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 165202 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp7039856ili; Mon, 27 May 2019 04:27:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSJbqewx6nPx88sHQvKG6wJso6vBH2pzZ5F3zLsOfvFqK76IcPguoaIpn9GIelwiIcu0ls X-Received: by 2002:a63:cc4e:: with SMTP id q14mr122771042pgi.84.1558956448054; Mon, 27 May 2019 04:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558956448; cv=none; d=google.com; s=arc-20160816; b=AXWwP/xz6p4joidb9YuJP2vy6nR4QvQPRdaNqKLkFj8Y5g/e3uzMsdRmgotT4fEW4l btzJeDFpxxGRfepeFVFWHh9WkybwV5XEZQsv5y0qMUTYjt6fYdg0xopL3sCj+Eyoc8qp HRfAo+4t8uAcoD3S/Au5WbtHFG2tj+71rkoF+7pe+5oZsjQY8iUo6ECDTNyZF19AKktG /q+RKOAjDjV9/3aX8mESxGQVi42NDPAIWwYXT1loOe1+uLkRyN/F/DJLZrc4+2XYlj5S XUfZ+/QaAtIXVnLblHrgnquqWlbJEPxjkxthAVPdzJivVb6RYaFTgPRLAbjePagM5pTc ENVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9y/IH+JG6Qynh8FmtZUM9JghLzxsBV1mtWL7v5H2a4Q=; b=0eXb8UCpYvczF5UEirHd/3fA8ZUJusOtoJVbvrAPRqEMwoPqdXgECbEdn201IIet6u iltKAMaX5fXn5JNnS7kofvugi7+cmz2P6QSN4WLKiyGD6MvYR0wsl7GPpBbqnWj7/Brs 8TCO8ZcOhlNqS4RFlESD1Xima1VbbhV5W3HjdDYKogXX3mnLAQtZNNrONRJsr21eX7JR dtiDuElF/yIplXdTFbnztdIGwE0Qk2qZlI0XF3kxQa+DpHsVHpV8qL/7jPDYtyZXNy0j Fh+ow+83QiO/4SWOAg/6XQHQ5Djyb4iG3rdyRr4LY8UvccvuoP+oxKgKqA7YH/us2IOn kTGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cHbav5PP; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go17si17006924plb.357.2019.05.27.04.27.27; Mon, 27 May 2019 04:27:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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=@linaro.org header.s=google header.b=cHbav5PP; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbfE0L11 (ORCPT + 9 others); Mon, 27 May 2019 07:27:27 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35292 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfE0L11 (ORCPT ); Mon, 27 May 2019 07:27:27 -0400 Received: by mail-wr1-f67.google.com with SMTP id m3so16592334wrv.2 for ; Mon, 27 May 2019 04:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9y/IH+JG6Qynh8FmtZUM9JghLzxsBV1mtWL7v5H2a4Q=; b=cHbav5PPQ68d4UGIDc+xzZrqmq4aIerkhnu8xmIvRGjKdNlVQUIz0jJdiPXHgVriId OcKZDQ+9FZJVo2826Wh7U2dJ7lrJ+4AUuddSxYw6fVe5Zp1wvzjsVw0DXONQ9+SIqPfp e9HK86zx6MtksU20+2u3ZEukWQQya3JLMLKuY9/tqjRKM3gdFbF+Gnl1/HiHj45XaQLp FgSlBgt4CPbP+769bkjaHXbdh6OuMxAqRhYz5Dt+1gsSRsV2rDfo404xPOPDEUDHMcKk jrGAV4/6WYF8pygNm/Q3Io2X33ESyDIfXArcPPWkAUkuu7SSToh7PZ97HXOnRaZMZPT5 Fjgg== 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=9y/IH+JG6Qynh8FmtZUM9JghLzxsBV1mtWL7v5H2a4Q=; b=rOtT5w089wr7Nl6IQWUrOIU7HbSbEFrgH/WtJVkD6wcmTd4Oo6aEmS6Eu46DcPFcq7 cCnKBmFqlz2BE7UdUiRD0COkpmG00U4Yti7kz8AR9orUrNJ9TFOdYf3Oy7lznyoSanGz 4SaLi22FW8ul5Pt/qKe2WBP5kQ9iz/R0T53ZuzmLG23ETw8Q4W+UNPYbiQ8KRQPHzwa5 uLB3t3KzzojaU2CTne9NzMveGRUbAqFrRBMI14BfS0bY+VEsSo4XhWA/VGDpTjUPiL5X itDm14JJE6T1CSV1NqBeHvryqpecbEYk1vkSo6jCE7ZZ510BEk2k+ooeUd1GJTzXbQOn tfHQ== X-Gm-Message-State: APjAAAX4FUX6dl8b0x2VTXz+UD3kzhUUM6c0sEUzG22WzmKRXFfepzbz S2u/7ndVTlVcIzKj5aKRDvmeLQ== X-Received: by 2002:adf:a749:: with SMTP id e9mr5294854wrd.64.1558956445366; Mon, 27 May 2019 04:27:25 -0700 (PDT) Received: from sudo.home ([2a01:cb1d:112:6f00:ccdd:dadc:1517:f416]) by smtp.gmail.com with ESMTPSA id l6sm9677747wmi.24.2019.05.27.04.27.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 04:27:24 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, Ard Biesheuvel , Masahisa Kojima , Linus Walleij , Marc Zyngier , Graeme Gregory , Lorenzo Pieralisi , Mika Westerberg , "Rafael J. Wysocki" , Len Brown Subject: [PATCH v3 0/4] synquacer: implement ACPI gpio/interrupt support Date: Mon, 27 May 2019 13:27:16 +0200 Message-Id: <20190527112720.2266-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Wire up the existing GPIO and interrupt controller drivers to the ACPI subsystem so they can be used on ACPI systems for ACPI event (power button, hardware error notification etc) Changes since v2: - use helper to create hierarchical IRQ domains under ACPI instead of exposing the GSI domain's irqdomain pointer directly (#1) - use has_acpi_companion() instead of ACPI_COMPANION() where possible (#4) - add Mika's ack to #4 Changes since v1: - Describe the EXIU controller as a separate device, which is a more accurate depiction of reality, and untangles the code a bit as well. Note that this requires the GPIO AML device to describe the EXIU interrupts explicitly. - Add a patch to obtain the ACPI GSI irqdomain. The EXIU driver needs this to obtain the default parent domain, since the GIC is not modeled as an ACPI object in the namespace, and so the parent<->child link cannot be expressed in AML. - Drop the Kconfig symbol for the GPIO controller. Just include the ACPI part when CONFIG_ACPI is defined. Cc: Masahisa Kojima Cc: Linus Walleij Cc: Marc Zyngier Cc: Graeme Gregory Cc: Lorenzo Pieralisi Cc: Mika Westerberg Cc: "Rafael J. Wysocki" Cc: Len Brown Ard Biesheuvel (4): acpi/irq: implement helper to create hierachical domains irqchip/exiu: preparatory refactor for ACPI support irqchip/exiu: implement ACPI support gpio: mb86s7x: enable ACPI support drivers/acpi/irq.c | 20 +++ drivers/gpio/gpio-mb86s7x.c | 51 ++++++- drivers/irqchip/irq-sni-exiu.c | 142 +++++++++++++++----- include/linux/acpi.h | 7 + 4 files changed, 182 insertions(+), 38 deletions(-) -- 2.20.1