Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp168489pxa; Fri, 31 Jul 2020 08:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfw7ojz0BMRaD0nVbSKtR75i8eQwaGMjjtx2VZsHNtDmDKALLmyyR6wORTIypZ1He/1ubP X-Received: by 2002:a05:6402:1643:: with SMTP id s3mr4630174edx.185.1596211199360; Fri, 31 Jul 2020 08:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596211199; cv=none; d=google.com; s=arc-20160816; b=budmKJJ72GbzKnZLGj6n7G5L5DWTGsiTG9WJNa8AUw3UaAIr1HHnzsacJsDAtMVqIZ IkFzquB9i7Goa4srrgF969hyTwdIDjGaGICyp9e8PROaoAq2OGGCveKk7tOJwYnACbVG 58drLzquZ+MdkVxPlTXCyzEI1Dodajlqg+EI2D7PGYBMMlS14jb9XIrXpaZoiFn6+fBm 5FRhX1siwc2aDPvJONS0HLEBGiDXjb7dGdxeIaYGblG8Lptn4OrZ3wOeLwpvN25OnGrQ CYMFDKHYa6/OeRYnKiaq2owyDfZzptbujjc+eQlmNV08zyq5DV2cU80aoQplznBwH2Eo js7g== 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=KoJsXkNu7DAyQrTk2uXCbdsXihbEgsCL9cGJchq1F8w=; b=uQ8sKDbRrExYCdnD8Qen+b5I2YLt8hW3rg3DwDf/JAdLqy+Dqx2MqXjp646DsFJPFL YEIk2CrtV2ksYsAuUe85T3sgfd07iepEiavVPYFyL9t/e5lKoY6weC2ir4JX/Q1OShsU ulD+TW1KupKJy43gMXzayFDnW9ckb2iAunD/f4eggwvOfAmG7zs9KiaOdAF/3drGt/Y0 89YYN6+KGfxsPeYvFdeNRZhNflhqKgk2rWTQC0TZfYJDpgUD+Dbab/V0OrkjNMWDt5Ie CaIol3lCQ836OEAVNp/gW1eY426GRHhzePlXB/TBBRQCN+fR5oJZyVLIq8F9hTe/Opmt Q7hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=DxFLoarD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si842265ejm.676.2020.07.31.08.59.37; Fri, 31 Jul 2020 08:59:59 -0700 (PDT) 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=fail header.i=@lechnology.com header.s=default header.b=DxFLoarD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387564AbgGaP7U (ORCPT + 99 others); Fri, 31 Jul 2020 11:59:20 -0400 Received: from vern.gendns.com ([98.142.107.122]:39878 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732550AbgGaP7T (ORCPT ); Fri, 31 Jul 2020 11:59:19 -0400 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=KoJsXkNu7DAyQrTk2uXCbdsXihbEgsCL9cGJchq1F8w=; b=DxFLoarDW+UuMDyz9jYWipRkY3 E0+/N6ADKZlfSxwYVwlYL9IFUd26TMCrm24Whg0uRq93F22NOPdgw527QldMFn4FtDKlhcVq2+xqu B1RQ3xbMhWmG61tM/TzOPce7D8GSkWl5tXB7jwjNR04G1yiofyVI2RjgnXwTfNXs99OJo/bBGNesT e54frMGNfIpIEx4Pkon90PYqG99hwKMuD8RfUCP/kEDzOzTMe44Rs/JpbLwMms0KktWgAsLvUaROz 3hjpcYvmZSJi5C6N73CIlLjdUdaY4rbo5SiSDs7E39vsC47u0C+m95iu69Lt+7m6Mc39vgtFPa0iH EBVGfJ4g==; Received: from [2600:1700:4830:165f::19e] (port=60758) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k1XRE-0004QC-7q; Fri, 31 Jul 2020 11:59:16 -0400 Subject: Re: [PATCH v4 4/5] irqchip/irq-pruss-intc: Implement irq_{get,set}_irqchip_state ops To: Grzegorz Jaszczyk , Marc Zyngier Cc: tglx@linutronix.de, jason@lakedaemon.net, "Anna, Suman" , robh+dt@kernel.org, Lee Jones , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Mills, William" , "Bajjuri, Praneeth" References: <1595927918-19845-1-git-send-email-grzegorz.jaszczyk@linaro.org> <1595927918-19845-5-git-send-email-grzegorz.jaszczyk@linaro.org> From: David Lechner Message-ID: <71007a86-0a62-a180-33b7-7d963d39f84b@lechnology.com> Date: Fri, 31 Jul 2020 10:59:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: 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 7/31/20 7:28 AM, Grzegorz Jaszczyk wrote: > On Wed, 29 Jul 2020 at 21:23, David Lechner wrote: >> >> On 7/28/20 4:18 AM, Grzegorz Jaszczyk wrote: >>> From: David Lechner >>> >>> This implements the irq_get_irqchip_state and irq_set_irqchip_state >>> callbacks for the TI PRUSS INTC driver. The set callback can be used >>> by drivers to "kick" a PRU by injecting a PRU system event. >>> >>> Example: >> >> We could improve this example by showing a device tree node of a >> firmware-defined device implemented in the PRU: >> >> /* Software-defined UART in PRU */ >> pru_uart: serial@XXXX { >> compatible = "ti,pru-uart"; >> ... >> interrupt-parent = <&pruss_intc>; >> /* PRU system event 31, channel 0, host event 0 */ >> interrupts = <31 0 0>, ...; >> interrupt-names = "kick", ...; >> ... >> }, >> >> Then driver would request the IRQ during probe: >> >> data->kick_irq = of_irq_get_byname(dev, "kick"); >> if (data->kick_irq < 0) >> ... >> >> >> And later the driver would use the IRQ to kick the PRU: >> >> irq_set_irqchip_state(data->kick_irq, IRQCHIP_STATE_PENDING, true); >> >> > > We could but I am not sure if this kind of complex example should land > in the commit log. > Marc could you please comment how you want to see this? > > Thank you, > Grzegorz > Based on the discussion in the device tree binding patch, the expanded example I gave is incorrect, so we can just drop it.