Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2865116rdd; Sat, 13 Jan 2024 05:17:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IE06itGeBkIz7Twi8Ycq7iJcsRp9JCjCi9XahXkCIYimJcu/d/x7FHJGHJD4UUSvQvhedAK X-Received: by 2002:a05:6808:93:b0:3bd:48c5:b1f3 with SMTP id s19-20020a056808009300b003bd48c5b1f3mr3523886oic.108.1705151848325; Sat, 13 Jan 2024 05:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705151848; cv=none; d=google.com; s=arc-20160816; b=nRsr5lg9jOqti35ohqEWke+Z9rYVYMk/YfWenpQ5B+hDK3lPlvXEmWZcBRkGNBmNwx qZ/eOt0p+FudSH4Rl0SHbO2a9GzuWw89dVrfpkhH3eleG3oSIklTPtrm8h36zOKBHrGy lOwvwXWBPUIpohwyArV/euC9tfRcf2U7CIiR16y0QO8/rLidCFvYVaRT4/uSdO5Q3q42 B+hG2F3v4Yt9LvW+P2+7HfFeyqRtLMuJA5SGQhILO7EPxPgHOrtLB9LN7SjppzK21OyZ l10CV3Y8svIsOpq8GDL0zXhZkeUco024/+8j4HpvT6PBhTz+HIJEBmV9OM8igDQH8rp4 WQvA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=i1yNYR4aCM2GUGDFw8rWsGeq6cMUhNiCZad4eFRc188=; fh=AvnGohFr+OGsboGfuxL5SOJB3cob6ClVqo7Z+Qxg2R4=; b=04mF1i6ta8MBZaE03RromWgA9W2BZnTN2dgcjjLPmxJ030KpsDbuHoO9ITk/c5X2v9 lXqjgDenNYmfYg85Vc9bWAKxtlEZi0pbM3Ws95nEEPpg1z3mYpdQNvpFjwjNF48Dm7Dk kOsaNs36PF0jIls17VYdLTQaaNvhzyBenpYXmUrESVSjo/35x1OBhSy9KdTBwe2hqZbN GU9rfuJAOzGQCYkjA72vtBr8zRfdcHPAPEPCYw+L4H8RIjsuHvkG+rTPf3/yhnvI7c2X LOnKtvHsR8PaIZK01hzYO2dqb4+RyG/SUQqkrMLmZOCuGs2O5UvrrulzZm2/EDSbKXY6 /RoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=v5HYG+Ks; spf=pass (google.com: domain of linux-kernel+bounces-25290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cj16-20020a056a00299000b006d9926b4c79si5262714pfb.76.2024.01.13.05.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=v5HYG+Ks; spf=pass (google.com: domain of linux-kernel+bounces-25290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1FEA7B2304E for ; Sat, 13 Jan 2024 13:17:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0CEC2111F; Sat, 13 Jan 2024 13:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="v5HYG+Ks" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 30753F500; Sat, 13 Jan 2024 13:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1705151834; x=1736687834; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Nbm89IVPwSbs+XUOYfVbDyLJJ83rqgMv2JmnBE8fqic=; b=v5HYG+KsQMaS5OXTbiirFtaDb4wUKzk6g5GOVpdt9nQznzcPjZJSQgt4 goMUvXcJ6ZouT5VnWLDvllgmwb+rOuDgA6GI+qfYRCtW0ls1NTUm+MQlB cR+M+RBBuIUR+MBiG/eBuyO+kGM+F4TDGiwmfqQ/iYL09L4OGtmA8sOeY 8EKzlG+CFFaNYaDqHSs16MSbTZF/ZcU2i9kCO8mw6FlFuz2IhydYPI3wK xlmcUInei2J9P6RFN3Xhh5bzI0wIWmEITweN/srPHI6OaPgbmxf59croe mv2kQ0JTNg6sZtbEQlHU92cK5YDEAgbruPC5nslxNLH4hoIOFM0hKgfLF Q==; X-CSE-ConnectionGUID: XyTF/spfTOquMExVK+Xxwg== X-CSE-MsgGUID: pd9Sgua7S4+9kq9oS414rw== X-IronPort-AV: E=Sophos;i="6.04,192,1695711600"; d="scan'208";a="14724191" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Jan 2024 06:17:06 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sat, 13 Jan 2024 06:17:04 -0700 Received: from DEN-DL-M31836.microsemi.net (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sat, 13 Jan 2024 06:17:01 -0700 From: Horatiu Vultur To: , , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH net 0/2] net: micrel: Fixes for PHC for lan8814 Date: Sat, 13 Jan 2024 14:15:19 +0100 Message-ID: <20240113131521.1051921-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain There are different issues with the PHC of lan8814. First issue is similar with the one on lan8841 which it has enabled by default the check regarding minorVersionPTP in the PTP header frame. So all the frames compliant to 8021AS will not be timestamped. The second issue is with setting and getting the time of the PHC. The issue is seen only when setting a time which is bigger than 2^32. Horatiu Vultur (2): net: micrel: Fix PTP frame parsing for lan8814 net: micrel: Fix set/get PHC time for lan8814 drivers/net/phy/micrel.c | 68 +++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 32 deletions(-) -- 2.34.1