summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-03-04 19:26:47 +0000
committerIan Lepore <ian@FreeBSD.org>2018-03-04 19:26:47 +0000
commitfa9d44f62ec884032307aff35dba72c455023fe1 (patch)
tree82fa3a36ca49890ad957dc5d103bbdfc79462297
parent4fa48f9c58b049ff7b05f00052fc58d7b557e4c0 (diff)
Notes
-rw-r--r--sys/dev/iicbus/nxprtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/iicbus/nxprtc.c b/sys/dev/iicbus/nxprtc.c
index 6466881d5cbd..8ac5cee5c2e1 100644
--- a/sys/dev/iicbus/nxprtc.c
+++ b/sys/dev/iicbus/nxprtc.c
@@ -608,6 +608,7 @@ nxprtc_gettime(device_t dev, struct timespec *ts)
sc->flags |= SC_F_CPOL;
}
+ clock_dbgprint_bcd(sc->dev, CLOCK_DBG_READ, &bct);
err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
ts->tv_sec += utc_offset();
@@ -648,6 +649,7 @@ nxprtc_settime(device_t dev, struct timespec *ts)
ts->tv_sec -= utc_offset();
ts->tv_nsec = 0;
clock_ts_to_bcd(ts, &bct, sc->use_ampm);
+ clock_dbgprint_bcd(sc->dev, CLOCK_DBG_WRITE, &bct);
/* On 8563 set the century based on the polarity seen when reading. */
cflag = 0;