From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8794C43334 for ; Thu, 30 Jun 2022 18:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AJD/3KFLxsX4Qnb5ohfioR2UDURWiO8QB+caUzegfqE=; b=AoMLogDjPAC4W0 McAX6C5+OYrlV/gvgTZns66qGt2uYipn2xLZlM43gfAo/zPoXOmSHZDAuQK0FkQ9mFrdK1SZ9G84n LwLrGoWOwIoobd3uTENEuWKGiElZhuMCW/t321qGjMyeUGIqNm5wkzRwgc4hT4Ikwlw1Aa2OD+uCn b9PO/bnYy6i5iDMyO1He3RhaeQMtdniaDNi0MlmqVLv57PFse3+gheOuE6FkNLaKb6yLcdQolJmnk 3hflGrtsgovw4Udh4OVHikcqXyATHoju9/RY44g3BNwRpGih/nGWX1MbZBWXPiVblHitef0R54Jkx FcIuWMOD4E2XWh/aTnYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6ytK-001307-1D; Thu, 30 Jun 2022 18:27:50 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6ytG-0012yv-3i for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2022 18:27:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B5614B82A3A; Thu, 30 Jun 2022 18:27:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20225C34115; Thu, 30 Jun 2022 18:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656613663; bh=vZlB4QRdgWqHZDNuidk5DViD5LF3+fh0M8zHRrvX+vI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IBbDCSwRRUEEUh9gT3PZW1hZuVIvz5fC0LHk1yJNa7iHf8iI5cqOe4w81fZ+hT+cA QfND6rQWN62H1+5tp7jfoFjQxzFU5FAEzonr/V7ch2FdUOm02LRg7cbN83kCg35vlq /Nu8oUmhPTc8mFyO4yyiHB7VU0NhAh1nYaqIahiU6h/ogWix+fNznTlZ+SaM3bePTz w1lkAa2mrr2vzxDtOSa1QI/Jb65BjOexsN617xxMwiIkh6w9ZtVP1P97wM920n13TP PkWls/drDrgpG/5lSjCHSTnvNgO2nMaWMpi/5SUKDI5NB4WelZbhOPHkUT+drRBhWF +YZ/xnEmlDX5g== Date: Thu, 30 Jun 2022 11:27:42 -0700 From: Jakub Kicinski To: Vadim Fedorenko Cc: "Kubalewski, Arkadiusz" , Vadim Fedorenko , Aya Levin , "netdev@vger.kernel.org" , Jonathan Lemon , linux-arm-kernel@lists.infradead.org, Richard Cochran Subject: Re: [RFC PATCH v1 1/3] dpll: Add DPLL framework base functions Message-ID: <20220630112742.0a1d0bf0@kernel.org> In-Reply-To: <689711e9-47ca-af2d-b0a7-a6406d9736e1@novek.ru> References: <20220623005717.31040-1-vfedorenko@novek.ru> <20220623005717.31040-2-vfedorenko@novek.ru> <34093244-431b-98c8-ba88-82957c659808@novek.ru> <528be46d-16d4-bf71-a657-8e7fd55f9ebd@novek.ru> <20220629192312.45acd2fd@kernel.org> <689711e9-47ca-af2d-b0a7-a6406d9736e1@novek.ru> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220630_112746_347091_0C3E8568 X-CRM114-Status: GOOD ( 16.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 30 Jun 2022 16:50:46 +0100 Vadim Fedorenko wrote: > On 30.06.2022 03:23, Jakub Kicinski wrote: >> On Thu, 30 Jun 2022 00:30:08 +0100 Vadim Fedorenko wrote: >>> This way it's getting closer and closer to ptp, but still having phase offset is >>> fair point and I will go this way. Jakub, do you have any objections? >> >> How does the DPLL interface interact with PTP? Either API can set the >> phase. > > Well, if the same hardware is exposed to both subsystem, it will be serialised > by hardware driver. And it goes to hardware implementation on how to deal with > such changes. Am I wrong? That's what ends up happening in practice. But it's a pretty poor experience for everyone involved :( Stating the obvious, perhaps, but the goal should be that either the APIs are disjoint or one is a superset of the other and there can be a kernel translation layer so that the driver only has to implement one. By a quick look at the PTP header it has phase offsets for both the clock and the outputs? Not sure. Don't see much in the docs either. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel