Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5254965rwb; Wed, 9 Aug 2023 00:45:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGxDntgCKW5ejIFQrnvH0k+/fj3q/2BT2ztrTqG4qDuS+67O/X26cel4rrZvzPPIgAq3Sl X-Received: by 2002:a17:907:2cf5:b0:993:d617:bdc8 with SMTP id hz21-20020a1709072cf500b00993d617bdc8mr1444628ejc.7.1691567118838; Wed, 09 Aug 2023 00:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691567118; cv=none; d=google.com; s=arc-20160816; b=At4AtTfE45KpQseZYMKopuSRjrT2a74/MPnTm2dvmWY6I7Y83EU5FIIQG5KH2OH25F Fnln0EYIXJ3HquW33mpccmPi7PfMsZad3sHqnojHUnq+SnExlLLXFZWPXbuven5F9qlH Vr8Or5KfSo59vCx/MEvCuI8u8wxjEm58x/5nitZaDd2SnIb7WY6dwlqrq7S7/32u4/g2 UqYV174dkdpT6kE5KbaWEViSdC8MaJ4/dPLtQVBuiBRrJHRmIyScvm/BKGZT6OuPgn4x EFcn6wuzrs25kOV1jsz2fAdo4aVGk4DD+Tynp64hrlU5X8JrKIcoYKmc3nn/F24aIgBL oRKg== 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:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=HfZIu7ucENKKJyiRVjl8TEZiwO3S69Lhhxi6s6qnyJ4=; fh=I6tRvGdbMxv3u2uboJWwStj6nGFN7CV/fVmqYKA3rzc=; b=Kb5xyoOxAFUQDTokstyQh3/Oxu7KmH3SvDwM1zO2zZH1vuZ1bASjMO9Tsz1BJObye2 pRs8iq3RGJDUtejqTTNDqTuoTZd94l6cbjYqiCf1IevpJlrLTK9zhS2hArLoZZ7EXExZ F02Sth8ZRRjMlT99i5p1xzyfUaP2MS5x3CDtzWrFG+jLOXyEEJtaDVDbr4B+Wujr9UTq bUvgiZPHe3ubQMzHbNyT/yjKiP6ApSPghzPXKUOGc09YzGjflNr0rqDejhxzNUInepQg zVnnjJPjYrdB7OFlWTRLA5g+Waea+24EQJD1q673rqAiyFqZeN/f/pVVGCqXdYCQyhRD iMhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EVeH0HXI; 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 c5-20020a170906340500b009828e8bec17si9129020ejb.531.2023.08.09.00.44.54; Wed, 09 Aug 2023 00:45:18 -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=EVeH0HXI; 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 S230480AbjHIGim (ORCPT + 99 others); Wed, 9 Aug 2023 02:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjHIGil (ORCPT ); Wed, 9 Aug 2023 02:38:41 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE7951BFF; Tue, 8 Aug 2023 23:38:39 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3796Y1QG027697; Wed, 9 Aug 2023 01:34:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691562841; bh=HfZIu7ucENKKJyiRVjl8TEZiwO3S69Lhhxi6s6qnyJ4=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=EVeH0HXIPD4HhuSNWiMt4cTOBMy15trZOjgr/UlIVkIjRS2HL2wws6jme2NwSNt3f uZSxCxOqcNiR3KcLDNlb4HEHf/SEDKNeaXSUOw4sDYvjkwBTEh5/0qo4YyaAN23S7e oMmDW6AscIqZOncQ2DIZ1+zz9WOtHvYTnn6b9DwY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3796Y1oQ088084 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 01:34:01 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 9 Aug 2023 01:33:59 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 9 Aug 2023 01:33:59 -0500 Received: from [172.24.227.217] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3796XrbF018885; Wed, 9 Aug 2023 01:33:54 -0500 Message-ID: <34784261-bb31-9c58-de5e-ee64c85d9d11@ti.com> Date: Wed, 9 Aug 2023 12:03:53 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 0/5] Introduce IEP driver and packet timestamping support Content-Language: en-US From: Md Danish Anwar To: Conor Dooley , Roger Quadros CC: MD Danish Anwar , Randy Dunlap , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , , , , , , , References: <20230807110048.2611456-1-danishanwar@ti.com> <20230808-unnerving-press-7b61f9c521dc@spud> <1c8e5369-648e-98cb-cb14-08d700a38283@ti.com> <529218f6-2871-79a2-42bb-8f7886ae12c3@kernel.org> <8bb5a1eb-3912-c418-88fe-b3d8870e7157@ti.com> <20230808-nutmeg-mashing-543b41e56aa1@spud> <1182349e-3531-c3b2-e457-4aad2595fa71@ti.com> Organization: Texas Instruments In-Reply-To: <1182349e-3531-c3b2-e457-4aad2595fa71@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.9 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_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Hi Conor, On 09/08/23 10:31 am, Md Danish Anwar wrote: > On 08/08/23 6:15 pm, Conor Dooley wrote: >> On Tue, Aug 08, 2023 at 06:06:11PM +0530, Md Danish Anwar wrote: >>> On 08/08/23 5:52 pm, Roger Quadros wrote: >>>> >>>> >>>> On 08/08/2023 15:18, Md Danish Anwar wrote: >>>>> On 08/08/23 5:38 pm, Conor Dooley wrote: >>>>>> On Mon, Aug 07, 2023 at 04:30:43PM +0530, MD Danish Anwar wrote: >>>>>>> This series introduces Industrial Ethernet Peripheral (IEP) driver to >>>>>>> support timestamping of ethernet packets and thus support PTP and PPS >>>>>>> for PRU ICSSG ethernet ports. >>>>>>> >>>>>>> This series also adds 10M full duplex support for ICSSG ethernet driver. >>>>>>> >>>>>>> There are two IEP instances. IEP0 is used for packet timestamping while IEP1 >>>>>>> is used for 10M full duplex support. >>>>>>> >>>>>>> This is v2 of the series [v1]. It addresses comments made on [v1]. >>>>>>> This series is based on linux-next(#next-20230807). >>>>>>> >>>>>>> Changes from v1 to v2: >>>>>>> *) Addressed Simon's comment to fix reverse xmas tree declaration. Some APIs >>>>>>> in patch 3 and 4 were not following reverse xmas tree variable declaration. >>>>>>> Fixed it in this version. >>>>>>> *) Addressed Conor's comments and removed unsupported SoCs from compatible >>>>>>> comment in patch 1. >>>>>> >>>>>> I'm sorry I missed responding there before you sent v2, it was a bank >>>>>> holiday yesterday. I'm curious why you removed them, rather than just >>>>>> added them with a fallback to the ti,am654-icss-iep compatible, given >>>>>> your comment that "the same compatible currently works for all these >>>>>> 3 SoCs". >>>>> >>>>> I removed them as currently the driver is being upstreamed only for AM654x, >>>>> once I start up-streaming the ICSSG driver for AM64 and any other SoC. I will >>>>> add them here. If at that time we are still using same compatible, then I will >>>>> modify the comment otherwise add new compatible. >>>>> >>>>> As of now, I don't see the need of adding other SoCs in iep binding as IEP >>>>> driver up-streaming is only planned for AM654x as of now. >>>> >>>> But, is there any difference in IEP hardware/driver for the other SoCs? >>>> AFAIK the same IP is used on all SoCs. >>>> >>>> If there is no hardware/code change then we don't need to introduce a new compatible. >>>> The comment for all SoCs can already be there right from the start. >>>> >>> >>> There is no code change. The same compatible is used for other SoCs. Even if >>> the code is same I was thinking to keep the compatible as below now >>> >>> - ti,am654-icss-iep # for K3 AM65x SoCs >>> >>> and once other SoCs are introduced, I will just modify the comment, >>> >>> - ti,am654-icss-iep # for K3 AM65x, AM64x SoCs >>> >>> But we can also keep the all SoCs in comment right from start as well. I am >>> fine with both. >> >>> Conor / Roger, Please let me know which approach should I go with in next revision? >> >> IMO, "ti,am564-icss-iep" goes in the driver and the other SoCs get >> specific compatibles in the binding with "ti,am564-icss-iep" as a >> fallback. > > Sure. Then as for now, "ti,am654-icss-iep" goes in the driver, I will keep the > dt binding compatible as below (as it was earlier in v1.) > > - ti,am654-icss-iep # for K3 AM65x, J721E and AM64x SoCs > > When new SoCs are introduced I can add specific bindings for them with > "ti,am654-icss-iep" being the fallback. > I checked internally and IEP hardware / driver is same across all TI K3 SoCs. Compatible "ti,am654-icss-iep" will be same for all SoCs. I don't think we need to introduce different compatibles for different SoCs in future as they will be using same hardware / driver. For now I will have below as compatible in dt bindings. This will not change in future. When new SoCs are added, they can just use this compatible itself. The driver will always use "ti,am654-icss-iep" as compatible. - ti,am654-icss-iep # for all TI K3 SoCs -- Thanks and Regards, Danish.