Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1094860pxb; Wed, 6 Apr 2022 08:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWu8JLB0nr5YJ/ldiThTzCX1KubLU/2c0iIPJRbhAkN5mGktCoIjoHj9OpGuaZQOlDRbdD X-Received: by 2002:a63:2d47:0:b0:399:53e3:5b4c with SMTP id t68-20020a632d47000000b0039953e35b4cmr7640928pgt.165.1649259342160; Wed, 06 Apr 2022 08:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649259342; cv=none; d=google.com; s=arc-20160816; b=TVm2uiii6yIGbFVDMMjH/iM/DXf7mzPX4czz63x+Uah4hAcYhb1N89lytqjyNDX6PH uSE3GdyKbLei2KP+cICw0w879mBMsbwqrpzZj5NUzhyI2/GF52aX547Sg3WFEzoogOc8 Ciu/EZow/25EAjrIseEZvIsjQjIcQ2KKNaD1FE4C81/TYCR6m0YdAS9G9j/1PrGMcFiy ZJIli7pXeBjvaeRA49d1FqS6e5I8oo2ZVFNaVuFA4eKyaCDN1UWXRWajPPgpqi+ZGasV oRRH9v0na4jS1FZ4aV94yBZmJyO6ArG0bFz5OaSRJA4dwPMYJIx94C0VsU8AldFXshP/ 8/jw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qg6EV2IZc1k/9CqC+u3u9RiNmaa89xg9kphbIADuZ+g=; b=kY4z/UNZ+ixb6bGnUCIdOJtz5owH3ewI+C46si0pfTOURpYcnaE/zKAS8zuaHs72ed xEM289B0Snh4HaH7Ow6zAJPPa8bT5c2mKqYlxq1FLxjFUflG/TaQrh+0JaDrKscq6qG1 JxD95IxtxqHRI9SGec905TM5JBhWdF2kRlFf0LHoMl+ZKQp64t6TKHYYkd9q4EN8PNQG H8++AoiSVwuZwn9EaRVpLBYgT+f4TRMkAf3fIp1N5qDpBz8Wm9dDiMXgsdFhHdItlm/M 2tT53V0yNEIDT7pSikgk5q+YnV9C63HDhAJ2YGb82Q90aLIxpI1XHyuZoBmMSibVevrD urDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="zQJGOIk/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q9-20020a170902f34900b00156a80ba52esi8041767ple.274.2022.04.06.08.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="zQJGOIk/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E4984D7A2D; Wed, 6 Apr 2022 06:48:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233681AbiDFNuk (ORCPT + 99 others); Wed, 6 Apr 2022 09:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbiDFNu3 (ORCPT ); Wed, 6 Apr 2022 09:50:29 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E776DB4D9; Wed, 6 Apr 2022 04:20:40 -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 236BIgjD021840; Wed, 6 Apr 2022 06:18:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649243922; bh=qg6EV2IZc1k/9CqC+u3u9RiNmaa89xg9kphbIADuZ+g=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=zQJGOIk/wYiqKUt6EV0CQTtSGiDru84V6lTgBPUw569T7+Wm3Jkf1U60kDwMuQA0u docahuL6oiEbnx/swKDlQb4dxe55WSRlZcqf89N7AeC17drJ1gGd2qrfRJf0gBxJeu QVxuADL/hRKgwqLobCco1iB4P+UqhluPNejUTd88= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 236BIgWg037134 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 6 Apr 2022 06:18:42 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 6 Apr 2022 06:18:41 -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.2308.14 via Frontend Transport; Wed, 6 Apr 2022 06:18:41 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 236BIcf8012911; Wed, 6 Apr 2022 06:18:39 -0500 Message-ID: Date: Wed, 6 Apr 2022 14:18:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH RFC V1 net-next 3/4] net: Let the active time stamping layer be selectable. Content-Language: en-US To: Richard Cochran , Andrew Lunn CC: Kurt Kanzenbach , Michael Walle , , , , , , , , References: <20220104014215.GA20062@hoboy.vegasvil.org> <20220404150508.3945833-1-michael@walle.cc> <877d83rjjc.fsf@kurt> <87wng3pyjl.fsf@kurt> <20220405154821.GB6509@hoboy.vegasvil.org> From: Grygorii Strashko In-Reply-To: <20220405154821.GB6509@hoboy.vegasvil.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 05/04/2022 18:48, Richard Cochran wrote: > On Tue, Apr 05, 2022 at 03:29:05PM +0200, Andrew Lunn wrote: > >> Maybe. Device tree is supposed to describe the hardware, not how you >> configure the hardware. Which PTP you using is a configuration choice, >> so i expect some people will argue it should not be in DT. > > +1 > > Pure DT means no configuration choices. > > (but you find many examples that break the rules!) > My point was related to one of issues described by Michael Walle in this thread: - supporting TS by the PHY may require also additional board support; - phy_has_hwtstamp() defined statically by PHY drivers without taking into account board design; - Kconfig option Doesn't really work with generic distro support and not allowed per-port cfg. So adding smth like "hwtstamp-en" will clear identify that this particular PHY on this particular board supports time stamping. (or hwtstamp-full/hwtstamp-rx/hwtstamp-tx). Of course, it will not help with default or dynamic selection of time stamping layer :(, but it will be one problem less. -- Best regards, Grygorii, Ukraine