Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6083AC7618A for ; Fri, 17 Mar 2023 08:55:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231455AbjCQIzt (ORCPT ); Fri, 17 Mar 2023 04:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbjCQIzi (ORCPT ); Fri, 17 Mar 2023 04:55:38 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D2E26A1CC; Fri, 17 Mar 2023 01:55:29 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32H8tKHF084921; Fri, 17 Mar 2023 03:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679043320; bh=iNOyU8jAlyYbzlqmmNzxj5imjqg2Dawl0ITO6Jw3VBE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=AJjkqJGh1Y/2MZawzjBmnsIgQmcnw8F1UwY5GzR2sWPOziCIba/MCrteVk6tGcvdg 2i/ys17INWggxOiy2BRiOAdm1WzHVdtmGwIiRBW9VxYkqjTOiEZgFGLEILd1iN+siE fHuVKZG338ZjJqwbnLkVUveFccAuNMaCjogQcAEU= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32H8tKm9043688 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Mar 2023 03:55:20 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 17 Mar 2023 03:55:20 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE114.ent.ti.com (157.170.170.25) 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; Fri, 17 Mar 2023 03:55:20 -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 32H8tE1a042709; Fri, 17 Mar 2023 03:55:15 -0500 Message-ID: <4f4dd491-e7f6-a963-c185-68521b262b22@ti.com> Date: Fri, 17 Mar 2023 14:25:14 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [EXTERNAL] Re: [EXTERNAL] Re: [EXTERNAL] Re: [PATCH v4 4/5] soc: ti: pruss: Add helper functions to set GPI mode, MII_RT_event and XFR Content-Language: en-US To: Roger Quadros , MD Danish Anwar , "Andrew F. Davis" , Suman Anna , Vignesh Raghavendra , Mathieu Poirier , Bjorn Andersson , Santosh Shilimkar , Nishanth Menon CC: , , , , , , References: <20230313111127.1229187-1-danishanwar@ti.com> <20230313111127.1229187-5-danishanwar@ti.com> <60e73395-f670-6eaa-0eb7-389553320a71@kernel.org> <20718115-7606-a77b-7e4d-511ca9c1d798@ti.com> <468f85ad-e4b0-54e1-a5b9-4692ae8a1445@ti.com> <455440f4-7f2b-366e-53ec-700c3bb98534@kernel.org> <22b8860c-12bd-384d-41af-93f1dde9a0fd@ti.com> From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/23 14:01, Roger Quadros wrote: > > > On 17/03/2023 07:02, Md Danish Anwar wrote: >> >> >> On 16/03/23 19:34, Roger Quadros wrote: >>> >>> Hi, >>> >>> On 16/03/2023 15:11, Md Danish Anwar wrote: >>>> >>>> >>>> On 16/03/23 17:49, Roger Quadros wrote: >>>>> >>>>> >>>>> On 16/03/2023 13:44, Md Danish Anwar wrote: >>>>>> >>>>>> On 16/03/23 17:06, Roger Quadros wrote: >>>>>>> Hi, >>>>>>> >>>>>>> On 16/03/2023 13:05, Md Danish Anwar wrote: >>>>>>>> Hi Roger, >>>>>>>> >>>>>>>> On 15/03/23 17:52, Roger Quadros wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 13/03/2023 13:11, MD Danish Anwar wrote: >>>>>>>>>> From: Suman Anna >>> >> >> [..] >> >>>> Sure, then I will use the existing enum pru_type. >>>> >>>> The enum pru_type is currently in drivers/remoteproc/pruss.c I will move this >>>> enum definition from there to include/linux/remoteproc/pruss.h >>> >>> There are 2 public pruss.h files. >>> include/linux/remoteproc/pruss.h >>> and >>> include/linux/pruss_driver.h >>> >>> Why is that and when to use what? >>> >> >> The include/linux/remoteproc/pruss.h file was introduced in series [1] as a >> public header file for PRU_RPROC driver (drivers/remoteproc/pru_rproc.c) >> >> The second header file include/linux/pruss_driver.h was introduced much earlier >> as part of [2] , "soc: ti: pruss: Add a platform driver for PRUSS in TI SoCs". >> >> As far as I can see, seems like pruss_driver.h was added as a public header >> file for PRUSS platform driver (drivers/soc/ti/pruss.c) >> >> [1] https://lore.kernel.org/all/20230106121046.886863-1-danishanwar@ti.com/ >> [2] https://lore.kernel.org/all/1542886753-17625-7-git-send-email-rogerq@ti.com/ > > Thanks. "include/linux/remoteproc/pruss.h" seems appropriate for enum pru_type. > > cheers, > -roger Yes, enum pru_type is located in pru_rproc.c, I will move enum pru_type to include/linux/remoteproc/pruss.h and then include include/linux/remoteproc/pruss.h" in pru_rproc.c and any other file that needs this enum. -- Thanks and Regards, Danish.