diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-04-06 16:14:48 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-04-06 16:14:48 +0000 |
commit | db6f58553792a2518ccb4d251d823a01c9e175b2 (patch) | |
tree | d53b2f56200fbbfc0396ecf82ee8f22ff3f5c615 /sys/dev/ic | |
parent | 216d3d4bb3769339d476f6a8a3469817083712f5 (diff) |
Give rt3090_efuse_read_2() a chance to work by using the correct offset.
Found after jbg@ sent me a horrible dmesg.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/rt2860.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c index f3ea8430450..ae9e2bc4428 100644 --- a/sys/dev/ic/rt2860.c +++ b/sys/dev/ic/rt2860.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860.c,v 1.45 2010/04/05 19:00:50 damien Exp $ */ +/* $OpenBSD: rt2860.c,v 1.46 2010/04/06 16:14:47 damien Exp $ */ /*- * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -911,6 +911,7 @@ rt3090_efuse_read_2(struct rt2860_softc *sc, uint16_t addr) uint16_t reg; int ntries; + addr *= 2; /*- * Read one 16-byte block into registers EFUSE_DATA[0-3]: * DATA0: F E D C @@ -927,7 +928,7 @@ rt3090_efuse_read_2(struct rt2860_softc *sc, uint16_t addr) break; DELAY(2); } - if (ntries == 100) + if (ntries == 500) return 0xffff; if ((tmp & RT3070_EFUSE_AOUT_MASK) == RT3070_EFUSE_AOUT_MASK) |