From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fugang Duan Subject: [PATCH v5 0/1] net: fec: ptp: avoid register access when ipg clock is disabled Date: Thu, 21 Aug 2014 17:09:37 +0800 Message-ID: <1408612178-13906-1-git-send-email-b38611@freescale.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , To: , Return-path: Received: from mail-bn1blp0185.outbound.protection.outlook.com ([207.46.163.185]:38817 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751007AbaHUJ0v (ORCPT ); Thu, 21 Aug 2014 05:26:51 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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