From ff01686c8e08e20ddcd7292b31a6699572f6990b Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 23 May 2004 14:22:11 +0000 Subject: Initialise OHCI_CROMHDR and OHCI_BUS_OPT in fwohci_ibr to make sure that they have the right values at the first bus reset. --- sys/dev/firewire/fwohci.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 8915d72..c6e58c5 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -2433,6 +2433,13 @@ fwohci_ibr(struct firewire_comm *fc) sc = (struct fwohci_softc *)fc; /* + * Make sure our cached values from the config rom are + * initialised. + */ + OWRITE(sc, OHCI_CROMHDR, ntohl(sc->fc.config_rom[0])); + OWRITE(sc, OHCI_BUS_OPT, ntohl(sc->fc.config_rom[2])); + + /* * Set root hold-off bit so that non cyclemaster capable node * shouldn't became the root node. */ -- cgit v1.1