[PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM

2017-01-19 Thread Andrei Pistirica
This patch does the following: - MACB/GEM-PTP interface - registers and bitfields for TSU - capability flags to enable PTP per platform basis Signed-off-by: Andrei Pistirica --- Patch history: Version 1: This is just the common code for MACB/GEM-PTP support. Code is based on the comments

[PATCH net-next] macb: Common code to enable ptp support for SAMA5Dx platforms.

2017-01-18 Thread Andrei Pistirica
This patch does the following: - add GEM-PTP interface - registers and bitfields for TSU are named according to SAMA5Dx data sheet - PTP support based on platform capability Signed-off-by: Andrei Pistirica --- This is just the common code for GEM-PTP support. Code is based on the comments

[RFC PATCH net-next v4 1/2] macb: Add 1588 support in Cadence GEM.

2016-12-14 Thread Andrei Pistirica
with addend and addendsub values. Each period addend and addendsub values are adjusted based on ppm drift. Signed-off-by: Andrei Pistirica Signed-off-by: Harini Katakam --- Patch history: Version 1: This patch is based on original Harini's patch, implemented in a separate file to eas

[RFC PATCH net-next v4 2/2] macb: Enable 1588 support in SAMA5Dx platforms.

2016-12-14 Thread Andrei Pistirica
API. Where timers are obtained from the PTP event/peer registers. Note: Patch on net-next, on December 7th. Signed-off-by: Andrei Pistirica --- Patch history: Version 1: Integration with SAMA5D2 only. This feature wasn't tested on any other platform that might use cadence/gem. Patch i

[RFC PATCH net-next v3 2/2] macb: Enable 1588 support in SAMA5Dx platforms.

2016-12-07 Thread Andrei Pistirica
API. Where timers are obtained from the PTP event/peer registers. Note: Patch on net-next, on December 7th. Signed-off-by: Andrei Pistirica --- Patch history: Version 1: Integration with SAMA5D2 only. This feature wasn't tested on any other platform that might use cadence/gem. Patch i

[RFC PATCH net-next v3 1/2] macb: Add 1588 support in Cadence GEM.

2016-12-07 Thread Andrei Pistirica
with addend and addendsub values. Each period addend and addendsub values are adjusted based on ppm drift. Signed-off-by: Andrei Pistirica Signed-off-by: Harini Katakam --- Patch history: Version 1: This patch is based on original Harini's patch, implemented in a separate file to eas

Re: [RFC PATCH v2 1/2] macb: Add 1588 support in Cadence GEM.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:37, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:51PM +0100, Andrei Pistirica wrote: +#ifdef CONFIG_MACB_USE_HWSTAMP +void macb_ptp_init(struct net_device *ndev); +#else +void macb_ptp_init(struct net_device *ndev) { } static inline ^^^ I can do static inline only

Re: [RFC PATCH v2 2/2] macb: Enable 1588 support in SAMA5D2 platform.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:54, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:52PM +0100, Andrei Pistirica wrote: diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index d975882..eb66b76 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net

Re: [RFC PATCH v2 1/2] macb: Add 1588 support in Cadence GEM.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:18, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:51PM +0100, Andrei Pistirica wrote: - Frequency adjustment is not directly supported by this IP. This statement still makes no sense. Doesn't the following text... This statement is inherited from original

[RFC PATCH v2 1/2] macb: Add 1588 support in Cadence GEM.

2016-11-18 Thread Andrei Pistirica
reduced by 1 and subns_incr is adjusted in positive accordingly. Signed-off-by: Andrei Pistirica Signed-off-by: Harini Katakam --- Version 2 patch for: https://patchwork.kernel.org/patch/9310989/. Modifications: - bitfields for TSU are named according to SAMA5D2 data sheet - identify GEM-PTP

[RFC PATCH v2 2/2] macb: Enable 1588 support in SAMA5D2 platform.

2016-11-18 Thread Andrei Pistirica
Hardware time stamp on the PTP Ethernet packets are received using the SO_TIMESTAMPING API. Where timers are obtained from the PTP event/peer registers. Signed-off-by: Andrei Pistirica --- Version 2 patch for: https://patchwork.kernel.org/patch/9310991/ Modificaions: - add PTP caps for SAMA5D2/3

Re: [RFC PATCH 2/2] net: macb: Add 64 bit addressing support for GEM

2016-11-18 Thread Andrei Pistirica
Hi Harini, On 18.11.2016 10:43, Harini Katakam wrote: Hi Rafal, On Fri, Nov 18, 2016 at 3:00 PM, Rafal Ozieblo wrote: -Original Message- From: Nicolas Ferre [mailto:nicolas.fe...@atmel.com] Sent: 18 listopada 2016 10:10 To: Rafal Ozieblo; Harini Katakam; Andrei Pistirica Cc

Re: [RFC PATCH 2/2] macb: Enable 1588 support in SAMA5D2 platform.

2016-09-09 Thread Andrei Pistirica
Hi Richard, I will take your indications into account in next version of the patch. Regards, Andrei On 06.09.2016 18:37, Richard Cochran wrote: On Fri, Sep 02, 2016 at 02:53:37PM +0200, Andrei Pistirica wrote: Hardware time stamp on the PTP Ethernet packets are received using the

Re: [RFC PATCH 1/2] macb: Add 1588 support in Cadence GEM.

2016-09-09 Thread Andrei Pistirica
On 06.09.2016 17:48, Richard Cochran wrote: I have some issues with this patch... On Fri, Sep 02, 2016 at 02:53:36PM +0200, Andrei Pistirica wrote: - Frequency adjustment is not directly supported by this IP. addend is the initial value ns increment and similarly addendesub. The ppb

[RFC PATCH 1/2] macb: Add 1588 support in Cadence GEM.

2016-09-02 Thread Andrei Pistirica
addendsub, ns_incr is reduced by 1 and subns_incr is adjusted in positive accordingly. Signed-off-by: Harini Katakam Signed-off-by: Andrei Pistirica --- This patch is based on original Harini's patch, implemented in a separate file to ease the review/maintanance and integration with

[RFC PATCH 2/2] macb: Enable 1588 support in SAMA5D2 platform.

2016-09-02 Thread Andrei Pistirica
Hardware time stamp on the PTP Ethernet packets are received using the SO_TIMESTAMPING API. Timers are obtained from the PTP event/peer gem registers. Signed-off-by: Andrei Pistirica --- Integration with SAMA5D2 only. This feature wasn't tested on any other platform that might use cadenc

Re: [RFC PATCH 2/3] net: macb: Add support for 1588 for Zynq Ultrascale+ MPSoC

2016-08-10 Thread Andrei Pistirica
PM To: Harini Katakam ; Harini Katakam ; Andrei Pistirica Cc: da...@davemloft.net; Boris Brezillon ; alexandre.bell...@free-electrons.com; netdev@vger.kernel.org; linux-ker...@vger.kernel.org; devicet...@vger.kernel.org; Punnaiah Choudary Kalluri ; Michal Simek ; Anirudha Sarangi Subject: Re