Skip to content

Commit fba7669

Browse files
committed
Merge tag 'v6.1.126' into orange-pi-6.1-rk35xx
This is the 6.1.126 stable release * tag 'v6.1.126' of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux: Linux 6.1.126 Partial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals Signed-off-by: Khusika Dhamar Gusti <[email protected]>
2 parents 1ac48b8 + f4f6772 commit fba7669

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 1
4-
SUBLEVEL = 125
4+
SUBLEVEL = 126
55
EXTRAVERSION =
66
NAME = Curry Ramen
77

drivers/usb/host/xhci-pci.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ static void xhci_pci_remove(struct pci_dev *dev)
571571
pci_set_power_state(dev, PCI_D3hot);
572572
}
573573

574+
#ifdef CONFIG_PM
574575
/*
575576
* In some Intel xHCI controllers, in order to get D3 working,
576577
* through a vendor specific SSIC CONFIG register at offset 0x883c,
@@ -720,6 +721,7 @@ static void xhci_pci_shutdown(struct usb_hcd *hcd)
720721
if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
721722
pci_set_power_state(pdev, PCI_D3hot);
722723
}
724+
#endif /* CONFIG_PM */
723725

724726
/*-------------------------------------------------------------------------*/
725727

@@ -769,9 +771,11 @@ static struct pci_driver xhci_pci_driver = {
769771
static int __init xhci_pci_init(void)
770772
{
771773
xhci_init_driver(&xhci_pci_hc_driver, &xhci_pci_overrides);
774+
#ifdef CONFIG_PM
772775
xhci_pci_hc_driver.pci_suspend = xhci_pci_suspend;
773776
xhci_pci_hc_driver.pci_resume = xhci_pci_resume;
774777
xhci_pci_hc_driver.shutdown = xhci_pci_shutdown;
778+
#endif
775779
return pci_register_driver(&xhci_pci_driver);
776780
}
777781
module_init(xhci_pci_init);

0 commit comments

Comments
 (0)