blob: 75e84c76e2e3507fc40fb0761cb389979b650018 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <acpi/acpi.h>
#include <cpu/x86/smm.h>
#include <intelblocks/xhci.h>
void mainboard_smi_sleep(u8 slp_typ)
{
/*
* Workaround: Reset the XHCI controller prior to S5 to avoid
* XHCI preventing shutdown. Linux needs to put the XHCI into D3
* before shutting down but the powerstate commands do not
* perform a reset.
*/
if (slp_typ == ACPI_S5)
xhci_host_reset();
}
|