aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tile/tilegx.c
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2015-03-29 17:12:09 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-31 12:01:18 -0400
commitb9acf24f779c778b994a7dc017c977a18560f690 (patch)
treeeaa856bbbac250789d29cda2836fdec15e684a0c /drivers/net/ethernet/tile/tilegx.c
parenta5c79c26e168018df201c07e046003a6ab226cdc (diff)
ptp: tilegx: convert to the 64 bit get/set time methods.
This driver is 64 bit only, and so this driver and device are ready for 2038. This patch changes the driver to the new PHC and also carries the timespec64 parameter on out to the gxio_mpipe_get- set_timestamp functions, making explicit the fact that the tv_sec field is 64 bits wide. Not even compile tested. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Chris Metcalf <cmetcalf@ezchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/tile/tilegx.c')
-rw-r--r--drivers/net/ethernet/tile/tilegx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c
index bea8cd2bb56c..a789a2054388 100644
--- a/drivers/net/ethernet/tile/tilegx.c
+++ b/drivers/net/ethernet/tile/tilegx.c
@@ -838,7 +838,8 @@ static int ptp_mpipe_adjtime(struct ptp_clock_info *ptp, s64 delta)
838 return ret; 838 return ret;
839} 839}
840 840
841static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, struct timespec *ts) 841static int ptp_mpipe_gettime(struct ptp_clock_info *ptp,
842 struct timespec64 *ts)
842{ 843{
843 int ret = 0; 844 int ret = 0;
844 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); 845 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps);
@@ -850,7 +851,7 @@ static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, struct timespec *ts)
850} 851}
851 852
852static int ptp_mpipe_settime(struct ptp_clock_info *ptp, 853static int ptp_mpipe_settime(struct ptp_clock_info *ptp,
853 const struct timespec *ts) 854 const struct timespec64 *ts)
854{ 855{
855 int ret = 0; 856 int ret = 0;
856 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); 857 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps);
@@ -876,8 +877,8 @@ static struct ptp_clock_info ptp_mpipe_caps = {
876 .pps = 0, 877 .pps = 0,
877 .adjfreq = ptp_mpipe_adjfreq, 878 .adjfreq = ptp_mpipe_adjfreq,
878 .adjtime = ptp_mpipe_adjtime, 879 .adjtime = ptp_mpipe_adjtime,
879 .gettime = ptp_mpipe_gettime, 880 .gettime64 = ptp_mpipe_gettime,
880 .settime = ptp_mpipe_settime, 881 .settime64 = ptp_mpipe_settime,
881 .enable = ptp_mpipe_enable, 882 .enable = ptp_mpipe_enable,
882}; 883};
883 884