Initialise OHCI_CROMHDR and OHCI_BUS_OPT in fwohci_ibr to make sure that

they have the right values at the first bus reset.
This commit is contained in:
Doug Rabson 2004-05-23 14:22:11 +00:00
parent b113636e68
commit c0e9efacfe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129611

View file

@ -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.