diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-03-25 07:26:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-03-25 07:26:51 +0000 |
commit | e9525585fffcf7ac8875d5978a818332f4d777cf (patch) | |
tree | c5a7d10caf592ac6265a9e9a2dd3811ec816adac | |
parent | a6ede108d09cc8c3b2ece61e5636de385c4f1885 (diff) |
when reading from the chip you use letoh32, not htole32.
jmatthew@ agrees with me
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 476f5054dbf..6b5c6dedf34 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.188 2014/03/24 04:26:58 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.189 2014/03/25 07:26:50 dlg Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -2503,7 +2503,7 @@ mpi_fc_rescan(void *xsc, void *xarg) pg.current_bus == 0) setbit(devmap, pg.current_target_id); - id = htole32(pg.port_id); + id = letoh32(pg.port_id); } while (id <= 0xff0000); for (i = 0; i < sc->sc_buswidth; i++) { |