mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Implement a method described in NetBSD PR 36652 for coping with the
BAD VCC bit.
This commit is contained in:
parent
9036240993
commit
414f7ec8bd
1 changed files with 12 additions and 1 deletions
|
|
@ -837,7 +837,18 @@ cbb_power(device_t brdev, int volts)
|
|||
}
|
||||
if (status & CBB_STATE_BAD_VCC_REQ) {
|
||||
device_printf(sc->dev, "Bad Vcc requested\n");
|
||||
/* XXX Do we want to do something to mitigate things here? */
|
||||
/*
|
||||
* Turn off the power, and try again. Retrigger other
|
||||
* active interrupts via force register. From NetBSD
|
||||
* PR 36652, coded by me to description there.
|
||||
*/
|
||||
sock_ctrl &= ~CBB_SOCKET_CTRL_VCCMASK;
|
||||
sock_ctrl &= ~CBB_SOCKET_CTRL_VPPMASK;
|
||||
cbb_set(sc, CBB_SOCKET_CONTROL, sock_ctrl);
|
||||
status &= ~CBB_STATE_BAD_VCC_REQ;
|
||||
status &= ~CBB_STATE_DATA_LOST;
|
||||
status |= CBB_FORCE_CV_TEST;
|
||||
cbb_set(sc, CBB_SOCKET_FORCE, status);
|
||||
goto done;
|
||||
}
|
||||
if (sc->chipset == CB_TOPIC97) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue