All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/1] net: fec: ptp: avoid register access when ipg clock is disabled
@ 2014-08-21  9:09 Fugang Duan
  2014-08-21  9:09 ` [PATCH v5 1/1] " Fugang Duan
  0 siblings, 1 reply; 4+ messages in thread
From: Fugang Duan @ 2014-08-21  9:09 UTC (permalink / raw)
  To: richardcochran, davem; +Cc: netdev, b38611

V5:
  Unlock the mutex when ptp clk is off in fec_ptp_settime() function.

V4:
* Init the ptp_clk_on flag to false in .probe(), and add mutex to protect the ptp clock
  status.

V3:
* Suggest from Richard Cochran, time_keep work is COMPLETELY INDEPENDENT from time stamping,
  let it always run. In .fec_ptp_gettime() function will return an error when ptp physical
  clock is disabled.

V2:
* As Richard Cochran's suggestion, use schedule_delayed_work instead of period timer.
* Stop delayed work before ipg clock disable like suspend, ethx close.

Fugang Duan (1):
  net: fec: ptp: avoid register access when ipg clock is disabled

 drivers/net/ethernet/freescale/fec.h      |    5 +++-
 drivers/net/ethernet/freescale/fec_main.c |   18 ++++++++++++++--
 drivers/net/ethernet/freescale/fec_ptp.c  |   31 ++++++++++++++++++----------
 3 files changed, 39 insertions(+), 15 deletions(-)

-- 
1.7.8

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-23 19:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-21  9:09 [PATCH v5 0/1] net: fec: ptp: avoid register access when ipg clock is disabled Fugang Duan
2014-08-21  9:09 ` [PATCH v5 1/1] " Fugang Duan
2014-08-22 17:46   ` David Miller
2014-08-23 19:52   ` Richard Cochran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.