Commit e6a8fee2 authored by Ananda Raju's avatar Ananda Raju Committed by Jeff Garzik

[PATCH] s2io driver irq fix

Modification and bug fixes with respect to irq registration.

- Enable interrupts after request_irq

- Restored MSI data register value at driver unload time
Signed-off-by: default avatarAnanda Raju <ananda.raju@neterion.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 61ef5c00
This diff is collapsed.
...@@ -829,8 +829,7 @@ struct s2io_nic { ...@@ -829,8 +829,7 @@ struct s2io_nic {
#define MSIX_FLG 0xA5 #define MSIX_FLG 0xA5
struct msix_entry *entries; struct msix_entry *entries;
struct s2io_msix_entry *s2io_entries; struct s2io_msix_entry *s2io_entries;
char desc1[35]; char desc[MAX_REQUESTED_MSI_X][25];
char desc2[35];
int avail_msix_vectors; /* No. of MSI-X vectors granted by system */ int avail_msix_vectors; /* No. of MSI-X vectors granted by system */
...@@ -1002,7 +1001,7 @@ static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag); ...@@ -1002,7 +1001,7 @@ static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag);
static struct ethtool_ops netdev_ethtool_ops; static struct ethtool_ops netdev_ethtool_ops;
static void s2io_set_link(unsigned long data); static void s2io_set_link(unsigned long data);
static int s2io_set_swapper(nic_t * sp); static int s2io_set_swapper(nic_t * sp);
static void s2io_card_down(nic_t *nic, int flag); static void s2io_card_down(nic_t *nic);
static int s2io_card_up(nic_t *nic); static int s2io_card_up(nic_t *nic);
static int get_xena_rev_id(struct pci_dev *pdev); static int get_xena_rev_id(struct pci_dev *pdev);
static void restore_xmsi_data(nic_t *nic); static void restore_xmsi_data(nic_t *nic);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment