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