File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
#define dev_fmt (fmt ) "PME: " fmt
11
11
12
+ #include <linux/bitfield.h>
12
13
#include <linux/pci.h>
13
14
#include <linux/kernel.h>
14
15
#include <linux/errno.h>
@@ -235,7 +236,8 @@ static void pcie_pme_work_fn(struct work_struct *work)
235
236
pcie_clear_root_pme_status (port );
236
237
237
238
spin_unlock_irq (& data -> lock );
238
- pcie_pme_handle_request (port , rtsta & 0xffff );
239
+ pcie_pme_handle_request (port ,
240
+ FIELD_GET (PCI_EXP_RTSTA_PME_RQ_ID , rtsta ));
239
241
spin_lock_irq (& data -> lock );
240
242
241
243
continue ;
Original file line number Diff line number Diff line change 637
637
#define PCI_EXP_RTCAP 0x1e /* Root Capabilities */
638
638
#define PCI_EXP_RTCAP_CRSVIS 0x0001 /* CRS Software Visibility capability */
639
639
#define PCI_EXP_RTSTA 0x20 /* Root Status */
640
+ #define PCI_EXP_RTSTA_PME_RQ_ID 0x0000ffff /* PME Requester ID */
640
641
#define PCI_EXP_RTSTA_PME 0x00010000 /* PME status */
641
642
#define PCI_EXP_RTSTA_PENDING 0x00020000 /* PME pending */
642
643
/*
You can’t perform that action at this time.
0 commit comments