MFP4: Power up with OE disabled. Similar patches went into NetBSD a

while ago, and it does seem to help at least one card I have and has
been in my p4 tree for many months.
This commit is contained in:
Warner Losh 2004-04-06 20:13:29 +00:00
parent 6195fb4102
commit 1ca203ae4b

View File

@ -1339,13 +1339,18 @@ done:;
* detect the voltage for the card, and set it. Since the power
* used is the square of the voltage, lower voltages is a big win
* and what Windows does (and what Microsoft prefers). The MS paper
* also talks about preferring the CIS entry as well.
* also talks about preferring the CIS entry as well. In addition,
* we power up with OE disabled. We'll set it later in the power
* up sequence.
*/
static int
cbb_do_power(device_t brdev)
{
int voltage;
/* Don't enable OE */
exca_clrb(&sc->exca, EXCA_PWRCTL, EXCA_PWRCTL_OE);
/* Prefer lowest voltage supported */
voltage = cbb_detect_voltage(brdev);
cbb_power(brdev, CARD_OFF);