. 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
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
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
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
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
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
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
*
* 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
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