Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35185
b: refs/heads/master
c: bb507fe
h: refs/heads/master
i:
  35183: 81163ee
v: v3
  • Loading branch information
shemminger@osdl.org authored and Jeff Garzik committed Aug 29, 2006
1 parent 9fa4a05 commit 57c5cdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97bda706b475655088201d7bb96cb8dd6d0d1aa3
refs/heads/master: bb507fe11ffda19eee158ce0be42d222135b7aca
6 changes: 3 additions & 3 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3189,6 +3189,8 @@ static int __devinit sky2_test_msi(struct sky2_hw *hw)
struct pci_dev *pdev = hw->pdev;
int err;

init_waitqueue_head (&hw->msi_wait);

sky2_write32(hw, B0_IMSK, Y2_IS_IRQ_SW);

err = request_irq(pdev->irq, sky2_test_intr, IRQF_SHARED, DRV_NAME, hw);
Expand All @@ -3198,10 +3200,8 @@ static int __devinit sky2_test_msi(struct sky2_hw *hw)
return err;
}

init_waitqueue_head (&hw->msi_wait);

sky2_write8(hw, B0_CTST, CS_ST_SW_IRQ);
wmb();
sky2_read8(hw, B0_CTST);

wait_event_timeout(hw->msi_wait, hw->msi_detected, HZ/10);

Expand Down

0 comments on commit 57c5cdd

Please sign in to comment.