From patchwork Tue Oct 20 07:32:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 11845897 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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 54ED2C433E7 for ; Tue, 20 Oct 2020 07:33:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1B0122242 for ; Tue, 20 Oct 2020 07:33:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OdMghiOz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="HC8mbtVO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1B0122242 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Dq9K6MNuGnFsL8W6RSdejUMNWy+dNEKv7W5P0KInzbo=; b=OdMghiOznlbsNyU30YtuFvGzXo FyRFwdYwSHFFC8/y2HdUUx3ePiyafJYClfJrJmo+4V2KLf0Uk+IKYh4CEV1byFu4oHSxiYqxincKI jiZYGk+oomCV05XLLioLLKwoZYtatqPOQxsLQuhxZGQ8o6RDM93Ej4FpvuF0xTHO0FusF1oERJ31g 5+u8hmIWZ6tocPQPfQzjCQe02y8+bP3Iw2gry4R6w6f39dF6fE2gCMqXvvSGy2ApVYOtkoXWiR9Hg t8SsmsExsMg5aVKJwrL1HH9R2OQHfDHB3K5UHUnRGpM79kIh3JldcvQBs+tYN0nGbjikjnFYPFAH4 OO2h/cWw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUm8J-0000vT-D8; Tue, 20 Oct 2020 07:32:35 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUm8E-0000td-4j for linux-arm-kernel@lists.infradead.org; Tue, 20 Oct 2020 07:32:31 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09K7WG5D045155; Tue, 20 Oct 2020 02:32:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1603179136; bh=w6KRfGRpZ8Qe5ljgTSyonGbPDQ0/NIWbexukOG/APXU=; h=From:To:CC:Subject:Date; b=HC8mbtVOEzLqRTglwanl05hMpC1Uayu1Yptd1e2LvS+b1eCF+W2A2HhX3yiZysVly uVYpGyrUUHqewENPQNTSM8kk6Xoav7dQDkcW3T31PHcC9npSpCcCVVzZ+sfv8zlGA+ Ci6Q4jl6O2ao3jbPTXtVUbwp25+3VKqfX8UNPPjw= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09K7WGgg127773 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Oct 2020 02:32:16 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 20 Oct 2020 02:32:15 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 20 Oct 2020 02:32:15 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09K7WCib069455; Tue, 20 Oct 2020 02:32:13 -0500 From: Peter Ujfalusi To: , , , , , , , Subject: [PATCH v3 0/2] irqchip/ti-sci-inta: Support for unmapped events Date: Tue, 20 Oct 2020 10:32:41 +0300 Message-ID: <20201020073243.19255-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201020_033230_296461_C5046270 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Changes since v2: - Extended the block diagram of INTA in the DT documentation - Use less creative variable names for unmapped events in the driver - Short comment section to describe the unmapped event handling in driver - Use u16 array to store the TI-SCI device identifiers instead of u32 - Use printk format specifier instead of_node_full_name Changes since v1: - Reviewed-by added to the first patch from Rob - return 0 if ti,unmapped-event-sources is not present in DT The version of INTA within DMSS (in AM64) changed how the events from the DMAs are handled and how sysfw is presenting these events to be used for interrupts. The DMA related events are directly mapped within INTA as unmapped events in contrast to previous devices with NAVSS where the events were tied to their source devices (UDMAP, ringacc). This series adds support for handling the new version of INTA by introducing a new property: ti,unmapped-event-sources which should hold a list of phandles pointing to the sources of these unmapped events. Regards, Peter --- Peter Ujfalusi (2): dt-bindings: irqchip: ti,sci-inta: Update for unmapped event handling irqchip/ti-sci-inta: Add support for unmapped event handling .../interrupt-controller/ti,sci-inta.yaml | 10 +++ drivers/irqchip/irq-ti-sci-inta.c | 83 ++++++++++++++++++- 2 files changed, 90 insertions(+), 3 deletions(-)