Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp936307pxb; Wed, 6 Apr 2022 04:47:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD4j/eSo4PZ0bS7ohbMsCkKizDWjtOuxR/ZJ7+Y9uFmWKnlHPG6pJZeoaX7E/gAZc4aTyZ X-Received: by 2002:a63:f113:0:b0:399:370e:c1d5 with SMTP id f19-20020a63f113000000b00399370ec1d5mr6851844pgi.450.1649245665479; Wed, 06 Apr 2022 04:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245665; cv=none; d=google.com; s=arc-20160816; b=W6N4XVrhjbRPBuqc0zswcFuFu0tO+ejTOTiuamuEEFjV0pNZLGM+qWGw4GuL0ruPP5 YOAT4ipJEvbtQrRPu1LCCclVweeonuzTXIyNfIU8RmzWrS8zAsOjJnHEvJ/7Seme6s3l 4YGgZMAwPZP5Ffxq3uxetDbyeiKmbtmgWwr3OmfN0zX/jMoyad8azvTzhCmmn0VlQikS wxPl5zxEUO2mgI3OcM9i0SFDsh5oS48Hn9bcUIywnbd03SCDj9OnQdjQWpe0rKz38/H8 nQb2yXD/9FNU4pa50qysKYuYYEuqNDmYjixKN6mrgP6Xe6ajiz5t6Go75+7Fe7HxcpHw 36EQ== 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=JYdCG3TAoNbKpALXnh21WRPhuqXFTS0WBJhqewUEdCQ=; b=lnOyKpJ8fuG+E4c5l5nALvvI6FXwSFL1oAdveYwLBI78fkdM4hFFxgTFjj3aUytgkp 4wW0zmvoVrqF6gCZAGFhr8ss7MMLGdnWd6ito1AOhp84fkJk01kpXvp1O7jajpgJfx4C /2uhOXVBY/AvUUuWa5czsxIpeJwUUtakjTAlTqF8JhA4EECW/t3StsvfgwfGV2+ogUpe gmZqeGudpeI2lM4jQwZA0ORon0JC7z9NlCOc1URplkpNRctTW0ahB/K6TM5tG9RWFQEs OzGVzGCa/TXTCBd6QcYwFOl+/PTaEV+F7weRh6rVbQzT7U/3/jFnf/+8nJcEVnr0dxuB 98rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vnl2EmkA; 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 e9-20020a170902ef4900b00156b08184bcsi7820809plx.219.2022.04.06.04.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:47:45 -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=Vnl2EmkA; 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 DE2BF62C2C5; Wed, 6 Apr 2022 03:04:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382460AbiDEViw (ORCPT + 99 others); Tue, 5 Apr 2022 17:38:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386444AbiDEOjU (ORCPT ); Tue, 5 Apr 2022 10:39:20 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719B05EBD5; Tue, 5 Apr 2022 06:16:13 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 235DFOsL038335; Tue, 5 Apr 2022 08:15:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649164524; bh=JYdCG3TAoNbKpALXnh21WRPhuqXFTS0WBJhqewUEdCQ=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Vnl2EmkA6sfzsx2ccbIzJiMsHX1n/wKxf+zgFCW8p9J7ov2+B8OGi8nB9zWtPrjt6 vOkuz5TCROSq5qBzY4zn3PemosER2jll/k6f7A6By1RoyjVA+QJsDrmiSmkCQL27R8 zs/5BCk53ntaO0AGU/yZVjXtQquQ+7FtDiep2AIo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 235DFO0Y061587 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Apr 2022 08:15:24 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 5 Apr 2022 08:15:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) 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; Tue, 5 Apr 2022 08:15:24 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 235DFGEe099167; Tue, 5 Apr 2022 08:15:16 -0500 Message-ID: Date: Tue, 5 Apr 2022 16:15:05 +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: Kurt Kanzenbach , Michael Walle CC: Andrew Lunn , , , , , , , , , References: <20220104014215.GA20062@hoboy.vegasvil.org> <20220404150508.3945833-1-michael@walle.cc> <877d83rjjc.fsf@kurt> <87wng3pyjl.fsf@kurt> From: Grygorii Strashko In-Reply-To: <87wng3pyjl.fsf@kurt> 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 14:19, Kurt Kanzenbach wrote: > On Tue Apr 05 2022, Michael Walle wrote: >> Am 2022-04-05 11:01, schrieb Kurt Kanzenbach: >>> On Mon Apr 04 2022, Michael Walle wrote: >>>> That would make sense. I guess what bothers me with the current >>>> mechanism is that a feature addition to the PHY in the *future* (the >>>> timestamping support) might break a board - or at least changes the >>>> behavior by suddenly using PHY timestamping. >>> >>> Currently PHY timestamping is hidden behind a configuration option >>> (NETWORK_PHY_TIMESTAMPING). By disabling this option the default >>> behavior should stay at MAC timestamping even if additional features >>> are added on top of the PHY drivers at later stages. Or not? >> >> That is correct. But a Kconfig option has several drawbacks: >> (1) Doesn't work with boards where I might want PHY timestamping >> on *some* ports, thus I need to enable it and then stumple >> across the same problem. >> (2) Doesn't work with generic distro support, which is what is >> ARM pushing right now with their SystemReady stuff (among other >> things also for embeddem system). Despite that, I have two boards >> which are already ready for booting debian out of the box for >> example. While I might convince Debian to enable that option >> (as I see it, that option is there to disable the additional >> overhead) it certainly won't be on a per board basis. >> Actually for keeping the MAC timestamping as is, you'd need to >> convince a distribution to never enable the PHY timestamping >> kconfig option. >> >> So yes, I agree it will work when you have control over your >> kconfig options, after all (1) might be more academic. But I'm >> really concerned about (2). > > Yes, the limitations described above are exactly one of the reasons to > make the timestamping layer configurable at run time as done by these > patches. Seems like PHY TS support belongs to HW description category, so could it be device tree material, like generic property defining which layer should do timestamping? -- Best regards, Grygorii, Ukraine