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

2010-04-07 Thread Scott Wood
On Wed, Apr 07, 2010 at 11:46:24AM +0200, Manfred Rudigier wrote: > switch (config.tx_type) { > case HWTSTAMP_TX_OFF: > + priv->hwts_tx_en = 0; > break; > case HWTSTAMP_TX_ON: > + if (!(priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER)) > +

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

2010-04-07 Thread Manfred Rudigier
The timer clock module is an intrinsic feature of every eTSEC. It supports hardware time stamping of all incoming and outgoing network packets. This patch checks if the underlying hardware is an eTSEC and adds the new FSL_GIANFAR_DEV_HAS_TIMER flag to the device flags. This flag is then used in the