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 do ii2 locking dance in psoc_dump()
details: https://anonhg.NetBSD.org/src/rev/dde2585a477c
branches: trunk
changeset: 1021801:dde2585a477c
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Jun 18 23:00:47 2021 +0000
description:
do ii2 locking dance in psoc_dump()
diffstat:
sys/arch/macppc/dev/psoc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 50521bb1ce29 -r dde2585a477c sys/arch/macppc/dev/psoc.c
--- a/sys/arch/macppc/dev/psoc.c Fri Jun 18 22:57:18 2021 +0000
+++ b/sys/arch/macppc/dev/psoc.c Fri Jun 18 23:00:47 2021 +0000
@@ -1,4 +1,4 @@
- /* $NetBSD: psoc.c,v 1.7 2021/06/18 22:57:18 macallan Exp $ */
+ /* $NetBSD: psoc.c,v 1.8 2021/06/18 23:00:47 macallan Exp $ */
/*-
* Copyright (c) 2019 Michael Lorenz
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psoc.c,v 1.7 2021/06/18 22:57:18 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psoc.c,v 1.8 2021/06/18 23:00:47 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -221,6 +221,8 @@
{
int i, j;
uint8_t data, cmd;
+
+ iic_acquire_bus(sc->sc_i2c, 0);
for (i = 0x20; i < 0x5f; i+= 8) {
printf("%02x:", i);
for (j = 0; j < 8; j++) {
@@ -232,4 +234,5 @@
}
printf("\n");
}
+ iic_release_bus(sc->sc_i2c, 0);
}
Home |
Main Index |
Thread Index |
Old Index