Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4104633ima; Mon, 4 Feb 2019 10:15:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IaW/4RJ1FyHI0RlYikLUyMdwq2ij9kqCnCVG4SSGkkeK4Zouax1bz1Zyhzt8n7+TMbw1Szh X-Received: by 2002:a62:42d4:: with SMTP id h81mr620015pfd.259.1549304157477; Mon, 04 Feb 2019 10:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549304157; cv=none; d=google.com; s=arc-20160816; b=btR9cMiG7WlIVjVSK6/U+zP0rzxZ4vBa1S/Tky+ndCzYDm9MvuSZlr4jKpfVnaDQlH 7Yihn5+HUGVryvgmsfJxOph6Smz70a2w7Em/vRn7O3WprEHmwRQm8ZgUKs5dvxK5riGY slvzs+Tt+D9pK/d6+D1zRJ8XiNVfT5cRKtYy6cOh/6IRQA6QPIozLftnOn/XxqBDrAz8 e69jvSivPZ1yDAFesDVnwH4tXjSSZriH4KUV/ytWHET8HEXjxQMccyLq2zD4LRZe7+DL pATv7tm9DCFUxVT7u0dqPw1Xzy8l1mMSdvblUdlYTy3l/RsnsXV0mrBwVhIRuq4h8IDH PItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Izm6mRytQ5Yf2ROrucjXF89H6jKKjggfwKiagNwMvLE=; b=evU/pHqF6DHCKkwInSJHqYW/ThN3o5vNkCYf6zoF7Qz1544S0JJlzeKAMB+1qbmz5m w9ENSvZfVrZUUXUnSl2A4fLWdExDK/R7aJBKuE1/wDduLszIQBGIUTA8sP/3M0TtbVTO Bk8LwhkCtXARZCBu8Caerno4qDehlPMiXLa9iAB+iRCtOm570pRh+lcX+Y7vmRrh/8Y9 L8FGj4czOQ1xFKsQAFr1Q42CfrdnIQNT+htHEP+8OfH2hzeyMwz42nyjsjKOd4Y+827k h7Pu8FByCzMI83uVn5BG5WgCC8+8Hx16Yr2PpT1BijkqwYToSPD2b6I6SjymBFBZvyFy Wjcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si599416pgh.196.2019.02.04.10.15.41; Mon, 04 Feb 2019 10:15:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729257AbfBDSPX (ORCPT + 99 others); Mon, 4 Feb 2019 13:15:23 -0500 Received: from muru.com ([72.249.23.125]:37578 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfBDSPX (ORCPT ); Mon, 4 Feb 2019 13:15:23 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 2CC93808C; Mon, 4 Feb 2019 18:15:30 +0000 (UTC) Date: Mon, 4 Feb 2019 10:15:18 -0800 From: Tony Lindgren To: Roger Quadros Cc: ohad@wizery.com, bjorn.andersson@linaro.org, s-anna@ti.com, david@lechnology.com, nsekhar@ti.com, t-kristo@ti.com, nsaulnier@ti.com, jreeder@ti.com, m-karicheri2@ti.com, woods.technical@gmail.com, linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "Andrew F. Davis" , Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: Re: [PATCH v2 04/14] irqchip: pruss: Add a PRUSS irqchip driver for PRUSS interrupts Message-ID: <20190204181518.GN5720@atomide.com> References: <1549290167-876-1-git-send-email-rogerq@ti.com> <1549290167-876-5-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1549290167-876-5-git-send-email-rogerq@ti.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Roger Quadros [190204 14:23]: > From: "Andrew F. Davis" > > The Programmable Real-Time Unit Subsystem (PRUSS) contains an > interrupt controller (INTC) that can handle various system input > events and post interrupts back to the device-level initiators. > The INTC can support upto 64 input events with individual control > configuration and hardware prioritization. These events are mapped > onto 10 interrupt signals through two levels of many-to-one mapping > support. Different interrupt signals are routed to the individual > PRU cores or to the host CPU. > > The PRUSS INTC platform driver manages this PRUSS interrupt > controller and implements an irqchip driver to provide a Linux > standard way for the PRU client users to enable/disable/ack/ > re-trigger a PRUSS system event. The system events to interrupt > channels and host interrupts relies on the mapping configuration > provided through a firmware resource table for now. This will be > revisited and enhanced in the future for a better interface. The > mappings will currently be programmed during the boot/shutdown > of the PRU. > > The PRUSS INTC module is reference counted during the interrupt > setup phase through the irqchip's irq_request_resources() and > irq_release_resources() ops. This restricts the module from being > removed as long as there are active interrupt users. > > The PRUSS INTC can generate an interrupt to various processor > subsystems on the SoC through a set of 64 possible PRU system > events. These system events can be used by PRU client drivers > or applications for event notifications/signalling between PRUs > and MPU or other processors. An API, pruss_intc_trigger() is > provided to MPU-side PRU client drivers/applications to be able > to trigger an event/interrupt using IRQ numbers provided by the > PRUSS-INTC irqdomain chip. I suggest you send the binding patch and the interrupt controller driver separately to the irqchip guys. Maybe put the trigger function in to a separate patch that can be reviewed and applied separately. Regards, Tony