Re: [PATCH V3 net-next 6/6] ptp: Add a driver for InES time stamping IP core.

2019-05-27 Thread Richard Cochran
On Wed, May 22, 2019 at 03:42:20AM +0200, Andrew Lunn wrote: > I don't know about the PTP subsystem, but in general, forward > declarations are frowned upon, and it is generally requested to > reorder the functions to remove them. I am not aware of any general coding style rule or even defacto pra

Re: [PATCH V3 net-next 6/6] ptp: Add a driver for InES time stamping IP core.

2019-05-21 Thread Andrew Lunn
> +static bool ines_match(struct sk_buff *skb, unsigned int ptp_class, > +struct ines_timestamp *ts); > +static int ines_rxfifo_read(struct ines_port *port); > +static u64 ines_rxts64(struct ines_port *port, unsigned int words); > +static bool ines_timestamp_expired(struct ines_

[PATCH V3 net-next 6/6] ptp: Add a driver for InES time stamping IP core.

2019-05-21 Thread Richard Cochran
The InES at the ZHAW offers a PTP time stamping IP core. The FPGA logic recognizes and time stamps PTP frames on the MII bus. This patch adds a driver for the core along with a device tree binding to allow hooking the driver to MII buses. Signed-off-by: Richard Cochran --- drivers/ptp/Kconfig