Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev don't cut off upper bits in the i2c addr...



details:   https://anonhg.NetBSD.org/src/rev/73be6d0e7381
branches:  trunk
changeset: 832258:73be6d0e7381
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri May 04 17:15:23 2018 +0000

description:
don't cut off upper bits in the i2c address, ki2c knows how to deal with
them now

diffstat:

 sys/arch/macppc/dev/deq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2dba8ac08367 -r 73be6d0e7381 sys/arch/macppc/dev/deq.c
--- a/sys/arch/macppc/dev/deq.c Fri May 04 17:13:08 2018 +0000
+++ b/sys/arch/macppc/dev/deq.c Fri May 04 17:15:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: deq.c,v 1.12 2017/09/27 22:31:53 macallan Exp $        */
+/*     $NetBSD: deq.c,v 1.13 2018/05/04 17:15:23 macallan Exp $        */
 
 /*-
  * Copyright (C) 2005 Michael Lorenz
@@ -32,7 +32,7 @@
  */
  
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.12 2017/09/27 22:31:53 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.13 2018/05/04 17:15:23 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -87,7 +87,7 @@
        sc->sc_dev = self;
        sc->sc_node = ia->ia_cookie;
        sc->sc_parent = parent;
-       sc->sc_address = (ia->ia_addr & 0x7f);
+       sc->sc_address = ia->ia_addr;
        sc->sc_i2c = ia->ia_tag;
        if (OF_getprop(sc->sc_node, "compatible", name, 256) <= 0) {
                /* deq has no 'compatible' on my iBook G4 */



Home | Main Index | Thread Index | Old Index