Re: [PATCH net-next v4 2/5] net: phy: microchip_ptp : Add ptp library for Microchip phys

From: Vadim Fedorenko
Date: Thu Nov 14 2024 - 09:19:17 EST


On 14/11/2024 12:04, Divya Koppera wrote:
Add ptp library for Microchip phys
1-step and 2-step modes are supported, over Ethernet and UDP(ipv4, ipv6)

Signed-off-by: Divya Koppera <divya.koppera@xxxxxxxxxxxxx>
---
v3 -> v4
- Fixed coccicheck errors

v2 -> v3
- Moved to kmalloc from kzalloc
- Fixed sparse errors related to cast from restricted __be16

v1 -> v2
- Removed redundant memsets
- Moved to standard comparision than memcmp for u16
- Fixed sparse/smatch warnings reported by kernel test robot
- Added spinlock to shared code
- Moved redundant part of code out of spinlock protected area
---

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@xxxxxxxxx>