Skip to content

Commit 59e4571

Browse files
ksathamstsirkin
authored andcommitted
vdpa/octeon_ep: handle device config change events
The first interrupt of the device is used to notify the host about device configuration changes, such as link status updates. The ISR configuration area is updated to indicate a config change event when triggered. Signed-off-by: Satha Rao <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: Shijith Thotton <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 26f8ce0 commit 59e4571

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/vdpa/octeon_ep/octep_vdpa_main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ static irqreturn_t octep_vdpa_intr_handler(int irq, void *data)
7171
}
7272
}
7373

74+
/* Check for config interrupt. Config uses the first interrupt */
75+
if (unlikely(irq == oct_hw->irqs[0] && ioread8(oct_hw->isr))) {
76+
iowrite8(0, oct_hw->isr);
77+
78+
if (oct_hw->config_cb.callback)
79+
oct_hw->config_cb.callback(oct_hw->config_cb.private);
80+
}
81+
7482
return IRQ_HANDLED;
7583
}
7684

0 commit comments

Comments
 (0)