Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3670866rwl; Sun, 9 Apr 2023 22:04:55 -0700 (PDT) X-Google-Smtp-Source: AKy350bOwGDdIIa91jiXDFzrQYX4P8GhwbuuGlSYN+Cs3IPlY050io0awRJB5qKKOQK+H5W25AW9 X-Received: by 2002:a17:90b:3b91:b0:23f:a667:4efa with SMTP id pc17-20020a17090b3b9100b0023fa6674efamr8810921pjb.15.1681103094781; Sun, 09 Apr 2023 22:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681103094; cv=none; d=google.com; s=arc-20160816; b=WV5bfNDpKZ/DTmQmzEQ3AIjzcM6RBN1Me5FLPAnbcAgwGGYp7ajxH34132jdCzwcFn +RP9BEzMysQ6ooM43W3Ti92pL8CRVJpD32PB5VwfYeZ8AOhGBCCctrWswjZrn9jrIrrb H5VUaQTqkiQxyd/0P8vB0cwzbRNK7QtlS873FmTMS+WnO4oEqRfr8zZjawKs2kuBOmhS n4NUwPQWkMeseFbgt9raDCaGmnAtT5yx5/a6Hso2AnKPMrSsH74Mdu62VCXHqO0HUlWM 0vGUSg5qHlHgdavK3FcTvky5qkgySw+B+U9DBeQIAsp0B3PQcCSN/CCWQi8kaUUh+2s9 tbGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Ytx9fQ9Ub8uG529ZrD4BPGXjS5WsbtxTltwVymlI5EY=; b=XLjf/HOwspHTFZzMEBHV6oHTAB0D7Ww4inT+fK+EHS7EeNof2OEDpGJhdF361Cezgm /7Z2bx79ts8WyEPZj5LMSBtW352cEyL387hs3jSt+xo6HEyWJZ+TR4y+X41XgefgDzp0 /ZQ9W83fgRbhG2VQ6XiM1BPSE1P8hVEXDeJXF4mn4ySFLgRSfjPgHzHbxepPn+d/aC56 HGJTcv0pGSgmrxy1BF/OKbKJUCZlA0MVi8ppF3aSDGSZGPFTllcN5GNQPB8Fd9EwAvlf JVIYSel7oIvskJd1xPEyf0fJgesJ8lrXu7S/a2bf0bsysHSg33TnK0tcgTkNbIN1do+N Y0BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=di9uad7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a17090a8a1400b002469a4339cesi2635754pjn.118.2023.04.09.22.04.44; Sun, 09 Apr 2023 22:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=di9uad7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjDJErf (ORCPT + 99 others); Mon, 10 Apr 2023 00:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjDJErc (ORCPT ); Mon, 10 Apr 2023 00:47:32 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC1E30C6; Sun, 9 Apr 2023 21:47:30 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33A4lBoH101478; Sun, 9 Apr 2023 23:47:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1681102031; bh=Ytx9fQ9Ub8uG529ZrD4BPGXjS5WsbtxTltwVymlI5EY=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=di9uad7g8o6mc+SUeEMjwQE0pHDJHpuClOwJxovDPrJkU0RjNyL39zYmd+1QdurFL fS7jwdU5OjbhyxeObxRDj5eVQ4ORkuQJ5Ww2Y8D40ygmfPnSKtWkO1I6jF1ykeoRKU 3PCJPNZLIdG6swmUz59g7BAks0ZhZSBsF9+bgZcQ= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33A4lBhe020480 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 9 Apr 2023 23:47:11 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sun, 9 Apr 2023 23:47:10 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Sun, 9 Apr 2023 23:47:10 -0500 Received: from [10.24.69.114] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33A4l5pl079918; Sun, 9 Apr 2023 23:47:06 -0500 Message-ID: <08c07263-f4d4-1264-dd67-b377c3b6a048@ti.com> Date: Mon, 10 Apr 2023 10:17:05 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [EXTERNAL] Re: [PATCH v7 0/4] Introduce PRU platform consumer API To: Mathieu Poirier CC: MD Danish Anwar , "Andrew F. Davis" , Suman Anna , Roger Quadros , Vignesh Raghavendra , Tero Kristo , Bjorn Andersson , Santosh Shilimkar , Nishanth Menon , , , , , , , References: <20230404115336.599430-1-danishanwar@ti.com> <86ee5333-6d65-d28b-0dd5-40dfe485d48b@ti.com> Content-Language: en-US From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/04/23 18:45, Mathieu Poirier wrote: > On Thu, 6 Apr 2023 at 00:54, Md Danish Anwar wrote: >> >> On 04/04/23 17:23, MD Danish Anwar wrote: >>> Hi All, >>> The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS >>> or simply PRUSS) on various TI SoCs consists of dual 32-bit RISC cores >>> (Programmable Real-Time Units, or PRUs) for program execution. >>> >>> There are 3 foundation components for TI PRUSS subsystem: the PRUSS platform >>> driver, the PRUSS INTC driver and the PRUSS remoteproc driver. All of them have >>> already been merged and can be found under: >>> 1) drivers/soc/ti/pruss.c >>> Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml >>> 2) drivers/irqchip/irq-pruss-intc.c >>> Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.yaml >>> 3) drivers/remoteproc/pru_rproc.c >>> Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml >>> >>> The programmable nature of the PRUs provide flexibility to implement custom >>> peripheral interfaces, fast real-time responses, or specialized data handling. >>> Example of a PRU consumer drivers will be: >>> - Software UART over PRUSS >>> - PRU-ICSS Ethernet EMAC >>> >>> In order to make usage of common PRU resources and allow the consumer drivers >>> to configure the PRU hardware for specific usage the PRU API is introduced. >>> >>> This is the v7 of the old patch series [9]. >>> >> >> Hi Mathieu, Can you please review this series. I have addressed comments made >> by you in v5. I have also addressed Simon's comment in v6 and removed redundant >> macros from pruss.h header file. >> > > You are pushing me to review your code 19 hours after sending the last > revision? Are you serious? > I am really sorry for this. Thursday was last working day last week (as Friday was holiday in India), so I thought I should ping you so that this series would be reviewed by Monday. From now on I would try to keep a gap a week (or whatever is appropriate) before pinging you for review. I am really sorry for this again. >>> Changes from v6 [9] to v7: >>> *) Addressed Simon's comment on patch 3 of this series and dropped unnecassary >>> macros from the patch. >>> >>> Changes from v5 [1] to v6: >>> *) Added Reviewed by tags of Roger and Tony to the patches. >>> *) Added Acked by tag of Mathieu to patch 2 of this series. >>> *) Added NULL check for @mux in pruss_cfg_get_gpmux() API. >>> *) Added comment to the pruss_get() function documentation mentioning it is >>> expected the caller will have done a pru_rproc_get() on @rproc. >>> *) Fixed compilation warning "warning: ‘pruss_cfg_update’ defined but not used" >>> in patch 3 by squashing patch 3 [7] and patch 5 [8] of previous revision >>> together. Squashed patch 5 instead of patch 4 with patch 3 because patch 5 uses >>> both read() and update() APIs where as patch 4 only uses update() API. >>> Previously pruss_cfg_read()/update() APIs were intoroduced in patch 3 >>> and used in patch 4 and 5. Now these APIs are introduced as well as used in >>> patch 3. >>> >> >> >> -- >> Thanks and Regards, >> Danish. -- Thanks and Regards, Danish.