From c0e9efacfe9f21cf14777c90a4bdcb130b3f635e Mon Sep 17 00:00:00 2001 From: Doug Rabson 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(+) (limited to 'sys/dev') diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 8915d72e1687..c6e58c55b360 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -2432,6 +2432,13 @@ fwohci_ibr(struct firewire_comm *fc) device_printf(fc->dev, "Initiate bus reset\n"); 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.3