From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:13:03
This patch series is a follow up to the recent timespec64 work for the
PTP Hardware Clock drivers. Arnd noticed that drivers are using open
coded implementations of ns_to_timespec64 and timespec64_to_ns. This
series replaces the open coded logic with the helper functions.
Thanks,
Richard
Richard Cochran (11):
ptp: blackfin: use helpers for converting ns to timespec.
ptp: bnx2x: use helpers for converting ns to timespec.
ptp: tg3: use helpers for converting ns to timespec.
ptp: fec: use helpers for converting ns to timespec.
ptp: gianfar: use helpers for converting ns to timespec.
ptp: e1000e: use helpers for converting ns to timespec.
ptp: igb: use helpers for converting ns to timespec.
ptp: ixgbe: use helpers for converting ns to timespec.
ptp: mlx4: use helpers for converting ns to timespec.
ptp: stmmac: use helpers for converting ns to timespec.
ptp: cpts: use helpers for converting ns to timespec.
drivers/net/ethernet/adi/bfin_mac.c | 8 +++-----
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 7 ++-----
drivers/net/ethernet/broadcom/tg3.c | 4 +---
drivers/net/ethernet/freescale/fec_ptp.c | 7 ++-----
drivers/net/ethernet/freescale/gianfar_ptp.c | 8 +++-----
drivers/net/ethernet/intel/e1000e/ptp.c | 4 +---
drivers/net/ethernet/intel/igb/igb_ptp.c | 7 ++-----
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 7 ++-----
drivers/net/ethernet/mellanox/mlx4/en_clock.c | 4 +---
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 4 +---
drivers/net/ethernet/ti/cpts.c | 7 ++-----
11 files changed, 20 insertions(+), 47 deletions(-)
--
1.7.10.4
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:28
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/adi/bfin_mac.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:35
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:43
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/igb/igb_ptp.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:48
This patch changes the driver to use ns_to_timespec64() instead of
open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/e1000e/ptp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:53
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/gianfar_ptp.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:08:58
This patch changes the driver to use ns_to_timespec64() instead of
open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/mellanox/mlx4/en_clock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:09:33
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/ti/cpts.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:10:03
This patch changes the driver to use ns_to_timespec64() instead of
open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: "Keller, Jacob E" <jacob.e.keller@intel.com> Date: 2015-03-31 21:10:45
On Tue, 2015-03-31 at 23:08 +0200, Richard Cochran wrote:
quoted hunk
This patch changes the driver to use ns_to_timespec64() instead of
open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/e1000e/ptp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:11:08
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:11:43
This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/freescale/fec_ptp.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
@@ -433,8 +431,7 @@ static int fec_ptp_settime(struct ptp_clock_info *ptp,return-EINVAL;}-ns=ts->tv_sec*1000000000ULL;-ns+=ts->tv_nsec;+ns=timespec64_to_ns(ts);/* Get the timer value based on timestamp.*Updatethecounterwiththemaskedvalue.*/
From: "Keller, Jacob E" <jacob.e.keller@intel.com> Date: 2015-03-31 21:12:04
On Tue, 2015-03-31 at 23:08 +0200, Richard Cochran wrote:
This patch series is a follow up to the recent timespec64 work for the
PTP Hardware Clock drivers. Arnd noticed that drivers are using open
coded implementations of ns_to_timespec64 and timespec64_to_ns. This
series replaces the open coded logic with the helper functions.
Thanks,
Richard
Richard Cochran (11):
ptp: blackfin: use helpers for converting ns to timespec.
ptp: bnx2x: use helpers for converting ns to timespec.
ptp: tg3: use helpers for converting ns to timespec.
ptp: fec: use helpers for converting ns to timespec.
ptp: gianfar: use helpers for converting ns to timespec.
ptp: e1000e: use helpers for converting ns to timespec.
ptp: igb: use helpers for converting ns to timespec.
ptp: ixgbe: use helpers for converting ns to timespec.
ptp: mlx4: use helpers for converting ns to timespec.
ptp: stmmac: use helpers for converting ns to timespec.
ptp: cpts: use helpers for converting ns to timespec.
drivers/net/ethernet/adi/bfin_mac.c | 8 +++-----
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 7 ++-----
drivers/net/ethernet/broadcom/tg3.c | 4 +---
drivers/net/ethernet/freescale/fec_ptp.c | 7 ++-----
drivers/net/ethernet/freescale/gianfar_ptp.c | 8 +++-----
drivers/net/ethernet/intel/e1000e/ptp.c | 4 +---
drivers/net/ethernet/intel/igb/igb_ptp.c | 7 ++-----
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 7 ++-----
drivers/net/ethernet/mellanox/mlx4/en_clock.c | 4 +---
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 4 +---
drivers/net/ethernet/ti/cpts.c | 7 ++-----
11 files changed, 20 insertions(+), 47 deletions(-)
For all the Intel drivers, this looks fine. I'm surprised I never
noticed before.
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
From: Richard Cochran <richardcochran@gmail.com> Date: 2015-03-31 21:12:08
This patch changes the driver to use ns_to_timespec64() instead of
open coding the same logic.
Compile tested only.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/net/ethernet/broadcom/tg3.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2015-03-31 21:19:42
From: Richard Cochran <richardcochran@gmail.com>
Date: Tue, 31 Mar 2015 23:08:05 +0200
This patch series is a follow up to the recent timespec64 work for the
PTP Hardware Clock drivers. Arnd noticed that drivers are using open
coded implementations of ns_to_timespec64 and timespec64_to_ns. This
series replaces the open coded logic with the helper functions.