From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH net-next V2 04/23] ptp: blackfin: convert to the 64 bit get/set time methods. Date: Sun, 22 Mar 2015 03:28:46 +0100 Message-ID: <201503220328.46415.arnd@linaro.org> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Amir Vadai , Ariel Elior , Baolin Wang , Ben Hutchings , Bruce Allan , Carolyn Wyborny , Chris Metcalf , David Miller , Frank Li , Giuseppe Cavallaro , Jeff Kirsher , John Stultz , Luwei Zhou , Matthew Vick , Michael Chan , Prashant Sreedharan , Shradha Shah , Solarflare linux maintainers , Sonic Zhang , Stefan =?iso-8859-15?q?S=F8rensen?= Return-path: Received: from mout.kundenserver.de ([212.227.17.24]:56778 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751468AbbCVC36 (ORCPT ); Sat, 21 Mar 2015 22:29:58 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Saturday 21 March 2015, Richard Cochran wrote: > -static int bfin_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) > +static int bfin_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) > { > u64 ns; > u32 remainder; I think it would be good to replace the open-coded ns = ts->tv_sec * 1000000000ULL; ns += ts->tv_nsec; here with a call to ns_to_timespec64(), here and in other drivers that you are already touching. Arnd