Skip to content

Commit 1d2a8a1

Browse files
caildavem330
authored andcommitted
net: aquantia: link interrupt handling function
Define link interrupt handler Signed-off-by: Nikita Danilov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3dd3e23 commit 1d2a8a1

File tree

1 file changed

+14
-0
lines changed
  • drivers/net/ethernet/aquantia/atlantic

1 file changed

+14
-0
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_nic.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ static int aq_nic_update_link_status(struct aq_nic_s *self)
161161
return 0;
162162
}
163163

164+
static irqreturn_t aq_linkstate_threaded_isr(int irq, void *private)
165+
{
166+
struct aq_nic_s *self = private;
167+
168+
if (!self)
169+
return IRQ_NONE;
170+
171+
aq_nic_update_link_status(self);
172+
173+
self->aq_hw_ops->hw_irq_enable(self->aq_hw,
174+
BIT(self->aq_nic_cfg.link_irq_vec));
175+
return IRQ_HANDLED;
176+
}
177+
164178
static void aq_nic_service_timer_cb(struct timer_list *t)
165179
{
166180
struct aq_nic_s *self = from_timer(self, t, service_timer);

0 commit comments

Comments
 (0)