mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Merge 6.1.126 into android14-6.1-lts
Changes in 6.1.126 Partial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals Linux 6.1.126 Change-Id: Ia60a9885b92b37ee891dfec18dd95be6dd6a1b23 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
VERSION = 6
|
||||
PATCHLEVEL = 1
|
||||
SUBLEVEL = 125
|
||||
SUBLEVEL = 126
|
||||
EXTRAVERSION =
|
||||
NAME = Curry Ramen
|
||||
|
||||
|
||||
@@ -564,6 +564,7 @@ static void xhci_pci_remove(struct pci_dev *dev)
|
||||
pci_set_power_state(dev, PCI_D3hot);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
/*
|
||||
* In some Intel xHCI controllers, in order to get D3 working,
|
||||
* through a vendor specific SSIC CONFIG register at offset 0x883c,
|
||||
@@ -713,6 +714,7 @@ static void xhci_pci_shutdown(struct usb_hcd *hcd)
|
||||
if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
|
||||
pci_set_power_state(pdev, PCI_D3hot);
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
@@ -762,9 +764,11 @@ static struct pci_driver xhci_pci_driver = {
|
||||
static int __init xhci_pci_init(void)
|
||||
{
|
||||
xhci_init_driver(&xhci_pci_hc_driver, &xhci_pci_overrides);
|
||||
#ifdef CONFIG_PM
|
||||
xhci_pci_hc_driver.pci_suspend = xhci_pci_suspend;
|
||||
xhci_pci_hc_driver.pci_resume = xhci_pci_resume;
|
||||
xhci_pci_hc_driver.shutdown = xhci_pci_shutdown;
|
||||
#endif
|
||||
return pci_register_driver(&xhci_pci_driver);
|
||||
}
|
||||
module_init(xhci_pci_init);
|
||||
|
||||
Reference in New Issue
Block a user