Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp988601rdb; Fri, 19 Jan 2024 05:07:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGklwudsKXxYIYYlOFEcGIKTcG8luoTz09LTgq+AeFI8DbBDKWImn3F9RTSC99RJkxVwi0Z X-Received: by 2002:a05:6402:2789:b0:559:f7e8:3a1e with SMTP id b9-20020a056402278900b00559f7e83a1emr1333978ede.115.1705669653609; Fri, 19 Jan 2024 05:07:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705669653; cv=pass; d=google.com; s=arc-20160816; b=KzkjqRz9AdJPfax4m2xhg3ZOPdJr+35bjpqwqtMvbFHFTNatfjT9T5k3lvwcpS28+R EqUvGQr2SJXpMtro+KrfZZ5a71XFlLgb0Rnb0exOSFRNTeZGmNue8K6dk068ZI0K5cGd SpU6lpjapftwMfuqXgdf4eFRHZ96kgk+wPH20HHa26X6wqGPj/VSla4laQfkXebsx4II pFe7POQ29/3aOeKGaRzud9YPhhOW3WVwOcOiO7VFa0pytClze8ZQdUo4Ap651Bz5pinH uM/uBUW+X7f0bWoZjP7ihE8dZLLvJQ/o8L+7YHEKOH2rd1MvlmW0STArD+OzBsubFwYa NiMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gfNpdWS77kPbZpDPWIKUcioA/sdtAqPn9TD06jokSFM=; fh=FEvoQG0TcXtMMTYVpvp5KnFoWwbh7VIJb/UM2tEroLc=; b=LHbwUtj3LwlKFcz0ugwEPq5cyawKkC369L5mgbBWyIGLoDo8IypaW8Juhq3ZqFteyp 5e4shAVLJD4kFzAixWq4ZsPv+4oYghscJIV3rTukfPCkO/6gYp9vSX7z/pjZyVU+/SEh n7FngTfEToMsGpMdtfYizlF1xW2riIXqdtKcx6UQoY9ATOpvVWrgdkoPODsD3a4Y5Nn1 v1pPDV1xfy7VIEZfIsuQIcNx+sQSHyDLwdhohMz8l7KemR6mtpZuMa0UYHePj8U6wA+0 TeNj1FYFpJDVcqq1xthTugFIN57b1Yy4TvGaaW5q5wwFvDgqG+nEwCoe0rky8J4MVKN3 0ohg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HUz7klK6; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-31171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h5-20020a056402094500b0055a5459c6dbsi793815edz.565.2024.01.19.05.07.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:07:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HUz7klK6; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-31171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5D4571F23E28 for ; Fri, 19 Jan 2024 13:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD92A524BE; Fri, 19 Jan 2024 13:07:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="HUz7klK6" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D93C4F1F5; Fri, 19 Jan 2024 13:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669643; cv=none; b=R/E7qK3ClSuJnmkK6Z3bEgAF0P0fNQ4xhLO3mDnlBXin3M/ssHegiRjBT2Z2VowkaJJZtx2KenrJp6y11vmRmCFrgrbHI3psJAKexNonIEB5OIIWe7XIPEST7p2mB70SjsVzAfDeMjOS6TNymBSArVOBAKxN0LyYISRz07E0SkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669643; c=relaxed/simple; bh=kO/kgFk+pCRzTkAUtMoYWZs6f8duDTJeIKjeZZqGzAE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o5/HAa6jQMi5YbPpxbBGTkdnzdmga171Y+wp0gEVOs7TV3Be6FQcWB6nykD4Kc7qJhB1+CEUC7hwNdtcTzvI3jEte0M/xCSF0O5EGOckBhuUiOaCbm7mwarega7ns7ccdbqMUxD58wQx1fu6viQvrJ3BimeqslRN1fv7Gornof4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=HUz7klK6; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=gfNpdWS77kPbZpDPWIKUcioA/sdtAqPn9TD06jokSFM=; b=HUz7klK6f9YMLOFn8aVhwsoE5X Djl1Xen3icTXUgV2iM+4HNic1Bx0C9Mj0Z1mHBN23WLWLrVG7+2EgHpTbRkwSORWCA+geVvKRvdc3 qjyV8ZWJZBnx3pdjfkIyYpKnpvhbXHA4hGR/lEv+4A9OsS52v0LZepO2uwcW3wH0135o=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rQoaR-005YeW-76; Fri, 19 Jan 2024 14:07:07 +0100 Date: Fri, 19 Jan 2024 14:07:07 +0100 From: Andrew Lunn To: Horatiu Vultur Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, Divya.Koppera@microchip.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net v2 2/2] net: micrel: Fix set/get PHC time for lan8814 Message-ID: <74772857-670e-4c9b-a6f8-2b59c3e20bcb@lunn.ch> References: <20240118085916.1204354-1-horatiu.vultur@microchip.com> <20240118085916.1204354-3-horatiu.vultur@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118085916.1204354-3-horatiu.vultur@microchip.com> On Thu, Jan 18, 2024 at 09:59:16AM +0100, Horatiu Vultur wrote: > When setting or getting PHC time, the higher bits of the second time (>32 > bits) they were ignored. Meaning that setting some time in the future like > year 2150, it was failing to set this. > > The issue can be reproduced like this: > > # phc_ctl /dev/ptp1 set 10000000000 > phc_ctl[118.619]: set clock time to 4294967295.000000000 or Sun Feb 7 06:28:15 2106 > > # phc_ctl /dev/ptp1 get > phc_ctl[120.858]: clock time is 1.238620924 or Thu Jan 1 00:00:01 1970 > > Fixes: ece19502834d ("net: phy: micrel: 1588 support for LAN8814 phy") > Signed-off-by: Horatiu Vultur > Reviewed-by: Maxime Chevallier > Reviewed-by: Divya Koppera When submitted to net-next: Reviewed-by: Andrew Lunn Andrew