Skip to content

Commit 45ef92e

Browse files
Himanshu Madhanidavem330
authored andcommitted
qlcnic: Disable INT-x interrupt for 83xx on driver unload
o Set HW mask for 8300 Series adapter, in INT-x mode, to stop generating interrupt during driver unload. Signed-off-by: Himanshu Madhani <[email protected]> Signed-off-by: Shahed Shaikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a80be5a commit 45ef92e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ inline void qlcnic_83xx_clear_legacy_intr_mask(struct qlcnic_adapter *adapter)
312312
writel(0, adapter->tgt_mask_reg);
313313
}
314314

315+
inline void qlcnic_83xx_set_legacy_intr_mask(struct qlcnic_adapter *adapter)
316+
{
317+
writel(1, adapter->tgt_mask_reg);
318+
}
319+
315320
/* Enable MSI-x and INT-x interrupts */
316321
void qlcnic_83xx_enable_intr(struct qlcnic_adapter *adapter,
317322
struct qlcnic_host_sds_ring *sds_ring)
@@ -458,6 +463,9 @@ void qlcnic_83xx_free_mbx_intr(struct qlcnic_adapter *adapter)
458463
{
459464
u32 num_msix;
460465

466+
if (!(adapter->flags & QLCNIC_MSIX_ENABLED))
467+
qlcnic_83xx_set_legacy_intr_mask(adapter);
468+
461469
qlcnic_83xx_disable_mbx_intr(adapter);
462470

463471
if (adapter->flags & QLCNIC_MSIX_ENABLED)

0 commit comments

Comments
 (0)