Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/rockchip Send an ACK after the last byte is rec...



details:   https://anonhg.NetBSD.org/src/rev/63777c1d32f7
branches:  trunk
changeset: 365015:63777c1d32f7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 02 00:48:12 2018 +0000

description:
Send an ACK after the last byte is received

diffstat:

 sys/arch/arm/rockchip/rk_i2c.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 25589bd3f6d4 -r 63777c1d32f7 sys/arch/arm/rockchip/rk_i2c.c
--- a/sys/arch/arm/rockchip/rk_i2c.c    Sat Sep 01 23:41:16 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_i2c.c    Sun Sep 02 00:48:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_i2c.c,v 1.1 2018/07/01 18:16:58 jmcneill Exp $ */
+/* $NetBSD: rk_i2c.c,v 1.2 2018/09/02 00:48:12 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: rk_i2c.c,v 1.1 2018/07/01 18:16:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_i2c.c,v 1.2 2018/09/02 00:48:12 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -294,7 +294,7 @@
                return EINVAL;
 
        mode = RKI2C_CON_I2C_MODE_RTX;
-       con = RKI2C_CON_I2C_EN | __SHIFTIN(mode, RKI2C_CON_I2C_MODE);
+       con = RKI2C_CON_I2C_EN | RKI2C_CON_ACK | __SHIFTIN(mode, RKI2C_CON_I2C_MODE);
        WR4(sc, RKI2C_CON, con);
 
        if (send_start && (error = rk_i2c_start(sc)) != 0)



Home | Main Index | Thread Index | Old Index