Disable the EC GPE in the shutdown path. This is correct but is not known
to fix any bug.
This commit is contained in:
parent
d8dbb9937b
commit
340a7f6a9b
@ -339,11 +339,13 @@ static ACPI_STATUS EcWrite(struct acpi_ec_softc *sc, UINT8 Address,
|
||||
UINT8 *Data);
|
||||
static int acpi_ec_probe(device_t dev);
|
||||
static int acpi_ec_attach(device_t dev);
|
||||
static int acpi_ec_shutdown(device_t dev);
|
||||
|
||||
static device_method_t acpi_ec_methods[] = {
|
||||
/* Device interface */
|
||||
DEVMETHOD(device_probe, acpi_ec_probe),
|
||||
DEVMETHOD(device_attach, acpi_ec_attach),
|
||||
DEVMETHOD(device_shutdown, acpi_ec_shutdown),
|
||||
|
||||
{0, 0}
|
||||
};
|
||||
@ -639,6 +641,17 @@ acpi_ec_attach(device_t dev)
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
static int
|
||||
acpi_ec_shutdown(device_t dev)
|
||||
{
|
||||
struct acpi_ec_softc *sc;
|
||||
|
||||
/* Disable the GPE so we don't get EC events during shutdown. */
|
||||
sc = device_get_softc(dev);
|
||||
AcpiDisableGpe(sc->ec_gpehandle, sc->ec_gpebit, ACPI_NOT_ISR);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
EcGpeQueryHandler(void *Context)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user