File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -79,22 +79,23 @@ static struct msi_domain_info dw_pcie_msi_domain_info = {
79
79
irqreturn_t dw_handle_msi_irq (struct pcie_port * pp )
80
80
{
81
81
int i , pos , irq ;
82
- u32 val , num_ctrls ;
82
+ unsigned long val ;
83
+ u32 status , num_ctrls ;
83
84
irqreturn_t ret = IRQ_NONE ;
84
85
85
86
num_ctrls = pp -> num_vectors / MAX_MSI_IRQS_PER_CTRL ;
86
87
87
88
for (i = 0 ; i < num_ctrls ; i ++ ) {
88
89
dw_pcie_rd_own_conf (pp , PCIE_MSI_INTR0_STATUS +
89
90
(i * MSI_REG_CTRL_BLOCK_SIZE ),
90
- 4 , & val );
91
- if (!val )
91
+ 4 , & status );
92
+ if (!status )
92
93
continue ;
93
94
94
95
ret = IRQ_HANDLED ;
96
+ val = status ;
95
97
pos = 0 ;
96
- while ((pos = find_next_bit ((unsigned long * ) & val ,
97
- MAX_MSI_IRQS_PER_CTRL ,
98
+ while ((pos = find_next_bit (& val , MAX_MSI_IRQS_PER_CTRL ,
98
99
pos )) != MAX_MSI_IRQS_PER_CTRL ) {
99
100
irq = irq_find_mapping (pp -> irq_domain ,
100
101
(i * MAX_MSI_IRQS_PER_CTRL ) +
You can’t perform that action at this time.
0 commit comments