[PATCH] gianfar: Fix setup of RX time stamping

2010-06-11 Thread Manfred Rudigier
. This is considered safe because users wanting HW timestamps must initialize the eTSEC clock first anyway, e.g. with the recently submitted PTP clock driver. Signed-off-by: Manfred Rudigier manfred.rudig...@omicron.at --- drivers/net/gianfar.c | 21 + 1 files changed, 17 insertions(+), 4

[PATCH v2 net-next 0/2] timestamping support for gianfar

2010-04-09 Thread Manfred Rudigier
On 2010-04-07 Manfred Rudigier wrote: this patch series adds support for hardware time stamping to gianfar. It uses the new SO_TIMESTAMPING infrastructure to deliver raw hardware timestamps to user space applications. Freescale CPUs with an eTSEC are able to time stamp all incoming network

[PATCH v2 net-next 1/2] gianfar: Add hardware RX timestamping support

2010-04-09 Thread Manfred Rudigier
to something else than HWTSTAMP_FILTER_NONE with the SIOCSHWTSTAMP ioctl command. Hardware timestamping is only supported for eTSEC devices. To indicate device support the new FSL_GIANFAR_DEV_HAS_TIMER flag was introduced. Signed-off-by: Manfred Rudigier manfred.rudig...@omicron.at --- drivers/net

[PATCH v2 net-next 2/2] gianfar: Add hardware TX timestamping support

2010-04-09 Thread Manfred Rudigier
timestamping is enabled by setting the tx_type to something else than HWTSTAMP_TX_OFF with the SIOCSHWTSTAMP ioctl command. It is only supported by eTSEC devices. Signed-off-by: Manfred Rudigier manfred.rudig...@omicron.at --- drivers/net/gianfar.c | 118

[RFC PATCH net-next 1/4] gianfar: Added stub support for SIOCSHWTSTAMP

2010-04-07 Thread Manfred Rudigier
This ioctl command is required for enabling hardware time stamping support for network packets, see Documentation/networking/timestamping.txt. At the moment nothing will be done for all requests that enable time stamping and thus ERANGE will be returned. Signed-off-by: Manfred Rudigier

[RFC PATCH net-next 2/4] gianfar: Added timer feature for eTSEC

2010-04-07 Thread Manfred Rudigier
in the SIOCSHWTSTAMP ioctl command to determine if HW time stamping support is available. Signed-off-by: Manfred Rudigier manfred.rudig...@omicron.at --- drivers/net/gianfar.c | 12 +++- drivers/net/gianfar.h |3 +++ 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/drivers

[RFC PATCH net-next 3/4] gianfar: Added raw hardware receive time stamp generation

2010-04-07 Thread Manfred Rudigier
This patch configures the eTSEC to insert time stamps into all received packets as padding alignment bytes. During the clean_rx_ring operation these raw time stamps are extracted and copied into the skb_shared_hwtstamps struct of the skb if required. Signed-off-by: Manfred Rudigier manfred.rudig

[RFC PATCH net-next 0/4] timestamping support for gianfar

2010-04-07 Thread Manfred Rudigier
* * Copyright (C) 2010 OMICRON electronics * Author: Manfred Rudigier manfred.rudig...@omicron.at * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation

[RFC PATCH net-next 4/4] gianfar: Added raw hardware transmit time stamp generation

2010-04-07 Thread Manfred Rudigier
into the skb_shared_hwtstamps struct of the skb if required. Signed-off-by: Manfred Rudigier manfred.rudig...@omicron.at --- drivers/net/gianfar.c | 108 - drivers/net/gianfar.h |2 +- 2 files changed, 90 insertions(+), 20 deletions(-) diff --git