Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3072292rwj; Mon, 19 Dec 2022 12:38:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+DX5INCCzJhWBC9UliqW0JOnSz1zKeWWm3L24xDd0C9MmhvNt2fWRIp3oYnRCRHlwJO9B X-Received: by 2002:a17:902:d0c9:b0:191:1a:17a5 with SMTP id n9-20020a170902d0c900b00191001a17a5mr15053261pln.47.1671482306590; Mon, 19 Dec 2022 12:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671482306; cv=none; d=google.com; s=arc-20160816; b=q9qHtXrYZVbHzwKVDNzQgwrCLGAfQuTxx4+q8crKvZFgQjH5Ec0ehbjG46RrNL7c5q 6ywX6t2eU51BoRK4AngprpBxHxNuC5sKU4m/vZopqau/FUPzpm28owRGT219pLZs7y39 EXsYMVCP1g4Z/e+ych/IYPdTQh9xwflNTsSC+i/1PIW0CRW6ndWtxzhH6NehSe5pHfWq kOQredZZaqSmhvNpjs1Yhrs+TMIBaHWP0USHVYchxGBmUFFcdxerttcpU3mjye+s18Mv uJtZMIpJR1pIe/FaWxAoHj+tiGLHCo7kgdrZBxkfPsFU9GrKRT0YOFFguo16SMJXdC1C uRlg== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L+xyTijCN1ubelHJ2hNavIDT5nS7VwkfWCqOP3ZTAJ8=; b=K93wuQx6iXafh+1SSMJ9o1RuosZGhUlHqqRE2IN/C6x3QZJP3cMQRvLlcXbJ907477 WinQ6QVUEOuo0ZCPwy+UX/XHrI5qGGSkfHeS5pJPeqids5kd05FRkJH3kSpqcNDFjk17 RKSohghObwsQi3Zl1XBheOYqY5T6XI6FdgA7hvF8AE4OPNzBwf7F+McYsOmDShIHhxKi ea9TBOOve/v3zLybYu7ng6gdKcHCFVqkMOYsZQy0S86d8vyj9spjhypZeQpRj7QfOjpC QIVssep7zDfSC+GlXSTYCiunEyl5G78OVSonwvRR4VwwtiutwDN6D8BjbJJDS9QFx0Fw NlvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sV6eZbQ7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g71-20020a636b4a000000b00477632e6011si10784407pgc.308.2022.12.19.12.38.17; Mon, 19 Dec 2022 12:38:26 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=sV6eZbQ7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbiLSUUe (ORCPT + 71 others); Mon, 19 Dec 2022 15:20:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232283AbiLSUUL (ORCPT ); Mon, 19 Dec 2022 15:20:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB002140FE; Mon, 19 Dec 2022 12:19:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7E20AB80EF7; Mon, 19 Dec 2022 20:19:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 668BDC433EF; Mon, 19 Dec 2022 20:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671481192; bh=tTePxdA+CAo0HaKkeJhMsyhOGYdEA4fxoVpt8swbBoc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=sV6eZbQ7OQO4BbD66TmrU+8AHX03VTOHKMRBS/nFZ0CG64//0g4lajH+VAVk8F47K LMRUuiRoZCIkjRREHqI6tDcm3gAjAKjax4c9NJYJKLeUgUc32NWwEH7k1aFvk4MRRP C+y9PQQlAFhrvxmMOfb2wIaKTi9BTC36xN2MxYh7TGAFUumqT00dG7jR2E5HYGHFsR f1e6I/wzYK09eYBdA2jKY+BsGLCOBSjRhWx7m9Ot5Owo5bA/6K+A/a8qSd0JHudAFu 08G3x0/vu9x4WEGUTkb83JWRQNWn3N6St5j5606e6hNKwOltW66A3QMrDbmP55n6tl 3AMJJ+6ISEXAw== Message-ID: Date: Mon, 19 Dec 2022 22:19:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v12 3/6] remoteproc: pru: Add APIs to get and put the PRU cores To: MD Danish Anwar , Mathieu Poirier , Krzysztof Kozlowski , Rob Herring Cc: Suman Anna , "Andrew F . Davis" , nm@ti.com, vigneshr@ti.com, srk@ti.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20221216053313.2974826-1-danishanwar@ti.com> <20221216053313.2974826-4-danishanwar@ti.com> Content-Language: en-US From: Roger Quadros In-Reply-To: <20221216053313.2974826-4-danishanwar@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 16/12/2022 07:33, MD Danish Anwar wrote: > Add two new APIs, pru_rproc_get() and pru_rproc_put(), to the PRU > driver to allow client drivers to acquire and release the remoteproc > device associated with a PRU core. The PRU cores are treated as > resources with only one client owning it at a time. > > The pru_rproc_get() function returns the rproc handle corresponding > to a PRU core identified by the device tree "ti,prus" property under > the client node. The pru_rproc_put() is the complementary function > to pru_rproc_get(). > > Signed-off-by: Suman Anna > Signed-off-by: Tero Kristo > Signed-off-by: Grzegorz Jaszczyk > Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros