From patchwork Wed Apr 17 16:43:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 13633599 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 3C45D171E6A for ; Wed, 17 Apr 2024 16:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713372218; cv=none; b=PmD5zW1MF9PTk8egaU8EYUS1CH6eI95B0R36cndICnS/J2t/5x2TkdWT6an55Ki17XgWHNoHJzQv/xAdwun9fNzylzT2bYzeOomxFVXLeiwfxyzJPE2t3LpmF3i1kNq1+vq1gX2h5bamOuvtkzKGLiM+D+rmivm1MNWbBsq7OqM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713372218; c=relaxed/simple; bh=SnmDTYTizwIk3M6MqOWLopWd5C0GG8II866ZqhvHzXI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oOGTivOxfhw2LmObZht59DA9pcbSiHP+jFyZ5JYqqYcK4fHY4UicnljWrY60prjkG4LoX+Z4ZDIgmZlijXvNJnCYlz9B/dvGWO8gkriKcHzfjY4yiYJ0oCr3C0IM0RxuY16Wb8q7bCZXsD7JjhRF4HeWWjpHgT15r8pJP7poaIo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rx8NT-0007Mz-VQ; Wed, 17 Apr 2024 18:43:19 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rx8NR-00CpCZ-On; Wed, 17 Apr 2024 18:43:17 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rx8NR-007Mdi-2D; Wed, 17 Apr 2024 18:43:17 +0200 From: Oleksij Rempel To: Alexandre Torgue , Jose Abreu , "David S. Miller" , Andrew Lunn , Heiner Kallweit , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Woojung Huh , Arun Ramadoss , Richard Cochran , Russell King Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH net-next v1 0/4] add support for TimeSync path delays Date: Wed, 17 Apr 2024 18:43:12 +0200 Message-Id: <20240417164316.1755299-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add support for TimeSync path delay information to the PHY framework to allow PHY driver provide path delay information and extend STMMAC to make use of it. Oleksij Rempel (4): net: phy: Add TimeSync delay query support to PHYlib API net: phy: micrel: lan8841: set default PTP latency values net: phy: realtek: provide TimeSync data path delays for RTL8211E net: stmmac: use delays reported by the PHY driver to correct MAC propagation delay drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 + .../ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 4 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 17 +++++- drivers/net/phy/micrel.c | 55 +++++++++++++++++- drivers/net/phy/phy_device.c | 57 +++++++++++++++++++ drivers/net/phy/realtek.c | 42 ++++++++++++++ include/linux/phy.h | 31 ++++++++++ 7 files changed, 206 insertions(+), 2 deletions(-)