]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
PCI: Add a helper to check Power Resource Requirements _PR3 existence
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Wed, 23 Oct 2019 14:25:25 +0000 (22:25 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:03 +0000 (18:47 +0100)
commitd5212d9c7c0d09fd37f8ac616190f5d46ca0d848
tree33cb73de0dce42831a8faaf083acbe225edb8433
parentb44b89494abfc9ae657a6053bd705881abfd27b0
PCI: Add a helper to check Power Resource Requirements _PR3 existence

BugLink: https://bugs.launchpad.net/bugs/1840835
A driver may want to know the existence of _PR3, to choose different
runtime suspend behavior. A user will be add in next patch.

This is mostly the same as nouveau_pr3_present().

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20191018073848.14590-1-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 52525b7a3cf82adec5c6cf0ecbd23ff228badc94 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/pci/pci.c
include/linux/pci.h