mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v7 0/2] net: phy: micrel: Add PTP support for lan8842
@ 2025-09-02 12:18 Horatiu Vultur
  2025-09-02 12:18 ` [PATCH net-next v7 1/2] net: phy: micrel: Introduce function __lan8814_ptp_probe_once Horatiu Vultur
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Horatiu Vultur @ 2025-09-02 12:18 UTC (permalink / raw)
  To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
	richardcochran, Parthiban.Veerasooran, kory.maincent
  Cc: netdev, linux-kernel, Horatiu Vultur

The PTP block in lan8842 is the same as lan8814 so reuse all these
functions.  The first patch of the series just does cosmetic changes such
that lan8842 can reuse the function lan8814_ptp_probe. There should not be
any functional changes here. While the second patch adds the PTP support
to lan8842.

v6->v7:
- the v6 was not sent by mistake to mailing lists, so this version just
  sends also to the mailing list

v5->v6:
- update commit message of the first commit to say that lan8842 had a
  different number of GPIOs
- add define for 0x8832
- threrefore -> therefore

v4->v5:
- remove phydev from lan8842_priv as is not used
- change type for rev to be u16 and fix holes in the struct
- assign ret to priv->rev only after it is checked

v3->v4:
- when reading PHY addr first check return value and then mask it
- change the type of gpios in the declration of __lan8814_ptp_probe_once

v2->v3:
- check return value of function devm_phy_package_join

v1->v2:
- use reverse x-mas notation
- replace hardcoded value with define

Horatiu Vultur (2):
  net: phy: micrel: Introduce function __lan8814_ptp_probe_once
  net: phy: micrel: Add PTP support for lan8842

 drivers/net/phy/micrel.c | 116 +++++++++++++++++++++++++++++++++++++--
 1 file changed, 111 insertions(+), 5 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-04  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-02 12:18 [PATCH net-next v7 0/2] net: phy: micrel: Add PTP support for lan8842 Horatiu Vultur
2025-09-02 12:18 ` [PATCH net-next v7 1/2] net: phy: micrel: Introduce function __lan8814_ptp_probe_once Horatiu Vultur
2025-09-02 12:18 ` [PATCH net-next v7 2/2] net: phy: micrel: Add PTP support for lan8842 Horatiu Vultur
2025-09-04  0:50 ` [PATCH net-next v7 0/2] " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®