Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp445680rdb; Mon, 15 Jan 2024 02:27:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPk+El8eyVPurHos67qzV2tGp6KtVR9idEV1lxyU53fNW8w6nrw94tvin4oXWEjXnLAPsw X-Received: by 2002:aa7:d9d6:0:b0:558:b14f:d3e with SMTP id v22-20020aa7d9d6000000b00558b14f0d3emr2841111eds.73.1705314421612; Mon, 15 Jan 2024 02:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705314421; cv=none; d=google.com; s=arc-20160816; b=HnWs1rurgTCc+AMtYG7F7eFxKqeqyInhpF7KptQC/tfIoM+Oq2FciG4RhGlPFPtxiz sZiLoxu2EIvEt7ZRGBGt2FeAExzUxPkkBRXibfo8ywZZObyAS3r/ht8gh9ImyVEzz2e/ zUXRDcSxyo8ga8U3YNArpi9DZVe4d0Uk5HHl1OxRkXnjh8EfuGiMrgn4qFr4/0iQuTPk jw8DVA0rkYUEaVNTrkwtQ9W5SmqalwKR5pBSkXrSYqplJqjOe0/459K3++8LMqc3kGXl joDkl388rwKgQXGqnTgSeLU/rQK0lmSrHOH1RaPcHv1QUrt9glvGS0dgLoCkw+a1k2uI Paug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=37RG/l7y/QlP+BRyRVRXMag0rOrfgpLAB0aLP6thvQk=; fh=JkqzIm8B9oigfa+kh67XslE5aJDc0/NfU+NYWGVfCVY=; b=C2/39eKH1sH1M0Ha2lG4JM65QZQ9qTiX9NC4ok1TEMAzteTkrIwIrkhdug7Dvhknq7 SFy7lEXUgxPXX9DTsLRHzsSUrx3O9nAS1NBxJz2hszJqz5JrKK8BcomHB0CK1Ea770ZV K8vlCVU/K6TBqKs8D4CC6AfALnMAGPDB80ra0qt+Pv618cCTibvrV2IRPE0Z+ZIdRKTi VLhQOv7CvJz8Uro7IqcuIasdYlAW9isNXc1RIqzx9OIXXex70f5yS2mBc2x5WxtRAlF1 8Y+gzn9mQDFiKWJQkAGvarOLVMvpa6Nxv2f5SRAN1xtJBWbuRFQQZ0cAVNlzCJTX8Cny ccpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Y7q5/Ttb"; spf=pass (google.com: domain of linux-kernel+bounces-25888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a50eb47000000b00558df3deac9si2630395edp.198.2024.01.15.02.27.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25888-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=@bootlin.com header.s=gm1 header.b="Y7q5/Ttb"; spf=pass (google.com: domain of linux-kernel+bounces-25888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 59BF61F21FC3 for ; Mon, 15 Jan 2024 10:27:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 380DC12E6C; Mon, 15 Jan 2024 10:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Y7q5/Ttb" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 CF703249E2; Mon, 15 Jan 2024 10:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from relay3-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::223]) by mslow1.mail.gandi.net (Postfix) with ESMTP id D3ACFC30D0; Mon, 15 Jan 2024 10:23:05 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6EC9C60008; Mon, 15 Jan 2024 10:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1705314177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=37RG/l7y/QlP+BRyRVRXMag0rOrfgpLAB0aLP6thvQk=; b=Y7q5/Ttbht1UxhlrwLk9i5ViBEAmqgX9NsxIPM1f1R4KPeIiUMCuApH9kQZdBzRc8AKABL ixtk6QTf6z3hDrXdUkUTw2Wi0cO1F4OPUOvRlDeCRAWvmHeFpcoHaB/Khk9IQ8VOhHpeCD WeL/dMxM48zTK6LJZ3/L/sF6nrMNg1BFZKIGZ34a4gKaPtwRz+bnnIO5DUcKA7RNGOZGwQ TcKRhPklqQaCLhLJ4GwAl7z7Ba3h+Zov6BFUBACQeWql3FY7OWE7HjFkbgPj13jz8uSmkw 3jp2wn1rphp8G0uKD/tg209RI7UHgujQ2Ofueo+lN7G3ZVDIq5v606Di4gaTWQ== Date: Mon, 15 Jan 2024 11:22:55 +0100 From: Maxime Chevallier To: Horatiu Vultur Cc: , , , , , , , , , , , Subject: Re: [PATCH net 2/2] net: micrel: Fix set/get PHC time for lan8814 Message-ID: <20240115112255.53d5bb85@device-28.home> In-Reply-To: <20240113131521.1051921-3-horatiu.vultur@microchip.com> References: <20240113131521.1051921-1-horatiu.vultur@microchip.com> <20240113131521.1051921-3-horatiu.vultur@microchip.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hello Horatiu, On Sat, 13 Jan 2024 14:15:21 +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 This looks fine to me, Reviewed-by: Maxime Chevallier Thanks, Maxime