Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1457521rdb; Sat, 18 Nov 2023 18:24:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdYkdqLF6uUkelytLLKxp6tQ3Uza7m2NwNaCbVbhIssY/znMFO+aL9QnftlWo2FTP/M9pi X-Received: by 2002:a05:6358:882c:b0:168:d0a3:202f with SMTP id hv44-20020a056358882c00b00168d0a3202fmr3565831rwb.15.1700360676831; Sat, 18 Nov 2023 18:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700360676; cv=none; d=google.com; s=arc-20160816; b=VOtprtmluq1gQe6XCK6/lmBtxvpaFSWOTI7CrwuebMW/FGJvui2+Hfj2b80o2vdIr6 pGTR4/rsgM6X8yJe5YWoZqUnRTnBf0dP1MMVDNfYAq12NQRFdSkLohDXVWCfWsWBuvMz +1laUyomz4Dt868bLlShodNGe+dP67hwScuRMrlUst7vBcSQQ6nuFQXztBSd7vFDT9xt EsR3jrRqIz3CSyYSA3eHTZ1FrkiEPQa2I6cnUG+HFkKBU7CyVXj+wTIHgXbRi5P40dzL NYc12DxPO/CoPnVHVJ/CoWT3Z3z6sDBomt6UG6IMZNWZ7jOU9FiF9b9T0vU3ZCeo0Y1M qQ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e0OHe8go/ctczb4Pt+o1wNBWQVj03W6FdW0phMGc9Pk=; fh=aj1dOU7T9MGjs2Hp4wovnnos2bO9Q09QJBumZTeturw=; b=Ljw/bBdJnR0DoZI52KEDjuuPBqKVSxrINB91f65GkcIWZEsS3QDvBk+jrFEXk1p8jb 4S7xKpJwib1QywOthYmpll0v7dyZt5kKItc7zhxVTl9VbuOKRzum8InN7UUdr1Zh3EdJ v/kUcLtc69We181HGllKUIJudvy2Zas0x7Xa8U2S+OFCPfm2GrEgXFEFH2bOMyDMY1qw tovVMVE+rt+mKy7TOrO6J3nx+6JEH/aYi1xLLIKCEhfU+vo93HaVIry8JlaOG8FY30Si /S2QxLlvjqzbk5BhFjMN8eUmuHcmwVQlyBphGprUcHfWcVihTpZmflb34Y92LwnG6Pjq NycA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q+vryw99; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 128-20020a630286000000b005bdfe7528c9si5246818pgc.726.2023.11.18.18.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q+vryw99; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 91D8C809379C; Sat, 18 Nov 2023 18:24:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjKSCYb (ORCPT + 99 others); Sat, 18 Nov 2023 21:24:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSCYa (ORCPT ); Sat, 18 Nov 2023 21:24:30 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D7D4E0 for ; Sat, 18 Nov 2023 18:24:27 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F09C433C7; Sun, 19 Nov 2023 02:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700360667; bh=A2sG4uv4+t+pd/QTCq6/w/UMh/HCjsCsXOA1t1utJSM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q+vryw9990zzwBqHZgv79fhAJVTNX1wE0d3+ewk51TTAkW8JAw74nhzfFPp1cY/tW YI4qGgTOYknTa3PShs1j1tsOgYHi7zsOJTdOzTM8twiyPVITMDj8sc4MVb2z5nJAPW gm5NlwZjk7mqdE9kRxgNgomJLbu6LENSeYOgycntSLuaPCQTcMB1FWZ2tVnkSAC6Ye 8Urz1CWf+XbcRMa6zuGCwBMaaXP0GiKXPIT/1+aIFm8GPTJACR4IRbnO5uDndSX+8+ BtjAFDs7ab6mtw/g/w0O+rg86Jw8oqpj489Nbg+YldE/k06vRuxAhBekuACzrvPb1p yrZJ4cVrOPhCg== Date: Sat, 18 Nov 2023 18:24:24 -0800 From: Jakub Kicinski To: Kory Maincent Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier Subject: Re: [PATCH net-next v7 08/16] net: ethtool: Add a command to expose current time stamping layer Message-ID: <20231118182424.2d569940@kernel.org> In-Reply-To: <20231114-feature_ptp_netnext-v7-8-472e77951e40@bootlin.com> References: <20231114-feature_ptp_netnext-v7-0-472e77951e40@bootlin.com> <20231114-feature_ptp_netnext-v7-8-472e77951e40@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 18 Nov 2023 18:24:34 -0800 (PST) On Tue, 14 Nov 2023 12:28:36 +0100 Kory Maincent wrote: > + ops->get_ts_info(dev, &ts_info); > + if (ts_info.so_timestamping & > + SOF_TIMESTAMPING_HARDWARE_MASK) > + data->ts_layer = MAC_TIMESTAMPING; > + > + if (ts_info.so_timestamping & > + SOF_TIMESTAMPING_SOFTWARE_MASK) > + data->ts_layer = SOFTWARE_TIMESTAMPING; How does this work? so_timestamping is capabilities, not what's enabled now. So if driver supports SW stamping we always return SOFTWARE?