Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp457279imu; Mon, 26 Nov 2018 13:19:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/WjwmPoGilgbupilk/OlYuhW0cCFwBJckaPNrP50xg5lm3ZLeRy9BRWkytTIDdBpbAFD+aZ X-Received: by 2002:a17:902:292b:: with SMTP id g40mr29988386plb.82.1543267172454; Mon, 26 Nov 2018 13:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543267172; cv=none; d=google.com; s=arc-20160816; b=RbGKL+yqa0Scr7t+oXKVyrrD+MnEjivAS364gUjooezjioV75CaNP5sUq60oiWyA/v G+We/4E3mZamoHzUoeIxloknxveT6oyArACcSKc3X8ed3LFe1TmAEq6lACFu3ZsZ0ICG VG6teRhGYJwrEnVIJAt+DUx1L0q4KHerTduzSHEG7sdV+3w0kTBRbFLIUveuJagFjDEw MLkH4KO7Ddcp0Jz/odcHzkOEfcbALphi1fHGzX1/0vkFeQj7Rv4yN1paHDmR+sMm7XdH +AV2EMmrUqYlFcua9t44YzIuU9spnteld/BAdMfT4wLL/VxHcwo0v0dSzh04njuHgd5i fMBQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=OcAy0UgHB0+JA+qpBc1g6+lS5BaL0sTloBb3BTJS8YA=; b=UWKCbqWzbRr3/AXG9WNvJ396hOLBRYQTlfVqJQhG4AIdECp91iI2ntLoHk09ute0Ei ZAkLilfknv0MNFo9TCH+uZCQLuEtzcFJDS89xO0ot6bkI/sRyeKVb4X4QHh6PicVnkz+ 3oSonpKh/I62XmYsh5d8pkOWC5QymgXwtGRzbzlvgcNXQLBexkiFGlzpSOjjuGXMV8uJ P1qG+mzHYHhr//mkDAZXC9bZxfhCqO71PZLt5EL7ACxeffS0g91xGGd24WNzmfvaouXs 7B3K8hdqXVl4LZXG+wuLXwL++PFMQMK+CQOZzTNM6OhIZXoN4jw50X3PRVAIU0d4SXMa Q1mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=K+PPgh6m; 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 p1-v6si1398354plb.290.2018.11.26.13.19.16; Mon, 26 Nov 2018 13:19:32 -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; dkim=fail header.i=@lechnology.com header.s=default header.b=K+PPgh6m; 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 S1727426AbeK0INz (ORCPT + 99 others); Tue, 27 Nov 2018 03:13:55 -0500 Received: from vern.gendns.com ([98.142.107.122]:44232 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbeK0INz (ORCPT ); Tue, 27 Nov 2018 03:13:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OcAy0UgHB0+JA+qpBc1g6+lS5BaL0sTloBb3BTJS8YA=; b=K+PPgh6mOTxQgbbgRkQX34Mllb oFE3vqxOxv5tDBnE8/StzsKzG3AgnoOVtW8QwIeLWX5WLuh+Eivj8hWwyji1/fmXT6dRT4ESEhFOm 6FPyWwcs7vCf1onALsCoY9v6xS4TJgYqnTg+iJeB0J+rhGil5tbZhtrNZt+ZEIy/AA5aTkfqdK6eU 32lJy1/hEYumrywOfpL0OjVqPJ5vi40Un/5T0YsYBYd/ddAaK1ZUUgdahfdy3IpOPsw7Slxo4Mm8/ eLzy8T5valnIs1d2Tdf37NKcxEDHI1PA8YiunooDrG2gvz6R2GS4/ZrhCNDJHlzO7+G9wo1Tx/PBr 7y6c1eHA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:44844 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gROG8-0002VQ-7Z; Mon, 26 Nov 2018 16:17:36 -0500 Subject: Re: [PATCH 10/17] soc: ti: pruss_intc: Add API to trigger a PRU sysevent To: Roger Quadros , tony@atomide.com Cc: robh+dt@kernel.org, bcousson@baylibre.com, ssantosh@kernel.org, ohad@wizery.com, bjorn.andersson@linaro.org, s-anna@ti.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 References: <1542886753-17625-1-git-send-email-rogerq@ti.com> <1542886753-17625-11-git-send-email-rogerq@ti.com> From: David Lechner Message-ID: Date: Mon, 26 Nov 2018 15:18:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1542886753-17625-11-git-send-email-rogerq@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/22/18 5:39 AM, Roger Quadros wrote: > From: Suman Anna > > 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. A new 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. Could we just use something like this: irq_set_irqchip_state(irq, IRQCHIP_STATE_PENDING, true); instead of introducing a new API?