Re: [RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-05 Thread Richard Cochran
On Fri, Aug 02, 2019 at 06:32:48PM +0200, Hubert Feurstein wrote: > diff --git a/drivers/net/ethernet/freescale/fec_main.c > b/drivers/net/ethernet/freescale/fec_main.c > index 2f6057e7335d..20f589dc5b8b 100644 > --- a/drivers/net/ethernet/freescale/fec_main.c > +++

Re: [RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-05 Thread Hubert Feurstein
Hi Vladimir, Am Mo., 5. Aug. 2019 um 11:55 Uhr schrieb Vladimir Oltean : [...] > You guessed correctly (since you copied me) that I'm battling much of > the same issues with the sja1105 and its spi-fsl-dspi controller > driver. I've copied you, because of this discussion on github:

Re: [RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-05 Thread Miroslav Lichvar
On Mon, Aug 05, 2019 at 12:54:49PM +0300, Vladimir Oltean wrote: > - Along the lines of the above, I wonder how badly would the > maintainers shout at the proposal of adding a struct > ptp_system_timestamp pointer and its associated lock in struct device. > That way at least you don't have to

Re: [RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-05 Thread Vladimir Oltean
Hi Hubert, On Fri, 2 Aug 2019 at 19:33, Hubert Feurstein wrote: > > With this patch the phc2sys synchronisation precision improved to +/-500ns. > > Signed-off-by: Hubert Feurstein > --- > > This patch should only be the base for a discussion about improving precision > of > phc2sys (from the

[RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-02 Thread Hubert Feurstein
With this patch the phc2sys synchronisation precision improved to +/-500ns. Signed-off-by: Hubert Feurstein --- This patch should only be the base for a discussion about improving precision of phc2sys (from the linuxptp package) in combination with a mv88e6xxx switch and imx6-fec. When I