> When both mac and phy support ptp timestamp, and the user has not > selected a provider(dev->hwprov is NULL), the core uses the mac.
We try to keep policy out of the kernel. It is policy to decide which stamper to use, so it should be userspace which decides and sets dev->hwprov. This is however a new feature, so we need to ensure it does not cause regressions with older code. So that is what this phy_is_default_hwtstamp() is about. The Marvell stampers have been around a while. Since yours is a new device, you should be using dev->hwprov. I guess it is a reasonably simple patch to ptp4l. Andrew