Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1163092lqe; Sun, 7 Apr 2024 23:45:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJlSfay6ToD4ijfqFeE9VgqH4Tw58B0Yb5q8Wknv6ybEsEf3VkG8VpNzsRdNZsZOmmz10OnzkFQInbPR3lP/N0MAAqYp69sLU2DEMumQ== X-Google-Smtp-Source: AGHT+IG7l8nUvoqr8Fz8W7GJUbdPZZ0kWyZj7+NGVoyaDk/gdMPH3KgM7qNkyyOtjTy6uZvnJdFK X-Received: by 2002:a37:ef1a:0:b0:78d:3c25:4f6b with SMTP id j26-20020a37ef1a000000b0078d3c254f6bmr8284373qkk.76.1712558746372; Sun, 07 Apr 2024 23:45:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712558746; cv=pass; d=google.com; s=arc-20160816; b=a72LSQCar8g9wPST/Jrk7P2ZM4APGfFPsxoleFUPwEFDZlMK7S1K+2O745C+iUlFzo xIPO9U9NFRnv7ivKBS4azOSigfvMbxUNZsSmqWzCObCjGu50BwCFBY6Ju2JTiZyOE+4c DC1Mq48nGDiUJ4yuZEI6akyt9gHWIYLvO1thbpwPdawwcyOrt9HS0hMSnz1ELGipHQY0 rRTnDIEaNBLgV44hUTsjOoUZedoqI75flwcmN4BbFBn+L3U64t03uoa9dAcBDBCQqAu2 8GEyROTpsa3Oz08wljFkoikKk/g2AZ3MUKYPtr0GcGTRQOTMj+EWR2jtw1beJm3k9w4Y mwNA== ARC-Message-Signature: i=2; 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=Ajs7Xcpiuh1afZNmlMRULNWAmceAAQOlrdLJVZ8Fonc=; fh=aOXZ9h3X4TWYhtSYRAKQWOX8QysQkBw+qhBVpjNfm2o=; b=YmRiWU6OVethjelMubrgFtUuIxAL3hYt0LNtyQpe/SwN9LWsuOWXwwxzVtVO+t2uSD DikrXKQC/jWhner+2CShjFww1DRIJU/zAMDMDekZFdFJfvQxdIGhWoy7NfsDdaM73/Fu Y+E8m8i69KSjBsqI/464E9kp9+awUTLaJT3Ysnzs1wr97B1Kspldluby97Rl4Nv4Gq71 kZrLoYfckNl2vXzTowENJTZq/xzjp0bwMJ0hRYDQAt1sCTk2jo9NnD0dryvqADARRJCt nnL0wYGmD4SULfHO3TPMCp2eXgdg04xT8W3quK6+bSqUq3DPUE0TjcOIHL3ScRH/+P3Y F37Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=XVkY7ilI; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-134849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bl7-20020a05620a1a8700b0078d63f3da9asi2336686qkb.618.2024.04.07.23.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=XVkY7ilI; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-134849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E2881C2177B for ; Mon, 8 Apr 2024 06:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D4B61B94D; Mon, 8 Apr 2024 06:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="XVkY7ilI" 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 9F032111A8; Mon, 8 Apr 2024 06:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712558739; cv=none; b=LIgHSJWDuxZL6HpP590wm/7S7CFCAVOBOroKPvmdJrpwoHvr63ctfMvxtu4ZThDZ/aVRfITbG0JcyOVqFax94hk8dK6kW7p4HXSpVQU4oaTtwCTvGQ+xoqM8moBUFmLrCMzeLMuH9q5friaV9hBvrMh0Belk965pV58RJpoxttc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712558739; c=relaxed/simple; bh=rH2ZvfTRn6x6o8HdVnQP3miTMN83+rwBW1YTozrVN1k=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=UZORGHfAwr+Ta5XRAWj3jzAPK2xjzU6kRyr4wEd1xabyuIAZD6kTKMgCrJK1iSME10iQUp54iCQbafxHYYXxkL3D9toEJTSf3rsU1FrqZ+Uc73OSTeelkgVlqOZjh70+yUyFQ+dzeZ2TYmEOR8wJQ59iLPNyqu5oS/goeRT3s7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=XVkY7ilI; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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=1712558737; x=1744094737; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rH2ZvfTRn6x6o8HdVnQP3miTMN83+rwBW1YTozrVN1k=; b=XVkY7ilI9QUPX8HzNvdczd+XaNil/tA5hXd/vaCh3METhtqszReh/f0b 7AUJOkV0O91Ug3m1ypmkwYTlivlDp0lKL06YA/Xtxzbekg9i273S5NfYZ eBL1lksCd+wTIKxpakdcDniTbwBEMqv8xzAsbqeVqx8H5gkuOliVa2IS0 vlkqQFpLnx1NSGDTnTU1RqWwPnsGK6H98x9xu+KUE3tzP2jBPnflSZ4OK KXJTdggt4Nh7B6lOLQ+Epcp5XWKHOxMzT7j9zJRjuOaVb0YMk7bdh4Mt1 63Ka/0FAwHiZkCXWw/fK53g6mKdHWKsPhVluNaA+8AqEtXQAqAmuCO3Uh w==; X-CSE-ConnectionGUID: 2+TP0aPMR5me/Arb7xwZJg== X-CSE-MsgGUID: 7Kz87cL8TR6Juj76gqzNuw== X-IronPort-AV: E=Sophos;i="6.07,186,1708412400"; d="scan'208";a="250762788" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 07 Apr 2024 23:45:31 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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; Sun, 7 Apr 2024 23:45:14 -0700 Received: from DEN-DL-M31836.microsemi.net (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 7 Apr 2024 23:45:12 -0700 From: Horatiu Vultur To: , , , , , , , CC: , , , Horatiu Vultur Subject: [PATCH net-next v3 0/2] net: phy: micrel: lan8814: Enable PTP_PF_PEROUT Date: Mon, 8 Apr 2024 08:44:30 +0200 Message-ID: <20240408064432.3881636-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 Add support for PTP_PF_PEROUT to lan8814. First patch just enables the LTC at probe time, such that it is not required to enable timestamping to have the LTC enabled. While the second patch actually adds support for PTP_PF_PEROUT. v2->v3: - rebase on latest net-next v1->v2: - add missing unlocks on error path Horatiu Vultur (2): net: phy: micrel: lan8814: Enable LTC at probe time net: phy: micrel: lan8814: Add support for PTP_PF_PEROUT drivers/net/phy/micrel.c | 381 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 357 insertions(+), 24 deletions(-) -- 2.34.1