Re: [PATCH net-next V2 00/23] ptp: get ready for 2038

From: Arnd Bergmann
Date: Sat Mar 21 2015 - 22:44:06 EST


On Saturday 21 March 2015, Richard Cochran wrote:
> This series converts the core driver methods of the PTP Hardware Clock
> (PHC) subsystem to use the 64 bit version of the timespec structure,
> making the core API ready for the year 2038.
>
> In addition, I reviewed how each driver and device represents the time
> value at the hardware register level. Most of the drivers are ready,
> but a few will need some work before the year 2038, as shown:
>
> Patch Driver
> ------------------------------------------------
> 12 drivers/net/ethernet/intel/igb/igb_ptp.c
> 15 ? drivers/net/ethernet/sfc/ptp.c
> 16 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
> 18 ? drivers/net/ethernet/tile/tilegx.c
> 19 drivers/net/phy/dp83640.c
>
> The commit log message documents how each driver is ready or why it is
> not ready. For patches 15 and 18, I could not easily find out the
> hardware representation of the time value, so I would ask the
> maintainers for a review.

Very nice, thanks for joining in with the effort.

I've commented on a few smaller issues on individual patches.
Overall, I think we'd be slightly better off changing the type to
ktime_t for the interface, the main downside of that being that
we'd need to change a bit more code.

You'd still need to do the same kind of conversion, so the difference
would be very minor in the end though, so I'm fine with whichever
way you decide as the subsystem maintainer.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/