summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-01-29 12:48:28 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-01-29 12:48:28 +0000
commit3edd8339e23a9037187787a41c867594434800a4 (patch)
treed5bbd6d8391c9f4afc320b0d5e41bd5af32b9e69 /sys/dev/i2c
parent428cd72a91e67d9043f4b73a36ab521cbb27f480 (diff)
Don't probe address 0x4f.
ok deraadt@
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/i2c_scan.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index 7f6773b88e5..4b7dcf8ede5 100644
--- a/sys/dev/i2c/i2c_scan.c
+++ b/sys/dev/i2c/i2c_scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2c_scan.c,v 1.64 2006/01/28 15:55:35 kettenis Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.65 2006/01/29 12:48:27 kettenis Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -32,14 +32,19 @@
void iic_probe(struct device *, struct i2cbus_attach_args *, u_int8_t);
-/* addresses at which to probe for sensors */
+/*
+ * Addresses at which to probe for sensors. Skip address 0x4f, since
+ * probing it seems to crash at least one Sony VAIO laptop. Only a
+ * few chips can actually sit at that address, and vendors seem to
+ * place those at other addresses, so this isn't a big loss.
+ */
struct {
u_int8_t start, end;
} probe_addrs[] = {
{ 0x18, 0x18 },
{ 0x1a, 0x1a },
{ 0x20, 0x2f },
- { 0x48, 0x4f }
+ { 0x48, 0x4e }
};
#define MAX_IGNORE 8