diff options
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 7d549355815a..afef6c0c59fe 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -1137,7 +1137,7 @@ static int init_nic(struct s2io_nic *nic) | |||
1137 | * SXE-008 TRANSMIT DMA ARBITRATION ISSUE. | 1137 | * SXE-008 TRANSMIT DMA ARBITRATION ISSUE. |
1138 | */ | 1138 | */ |
1139 | if ((nic->device_type == XFRAME_I_DEVICE) && | 1139 | if ((nic->device_type == XFRAME_I_DEVICE) && |
1140 | (get_xena_rev_id(nic->pdev) < 4)) | 1140 | (nic->pdev->revision < 4)) |
1141 | writeq(PCC_ENABLE_FOUR, &bar0->pcc_enable); | 1141 | writeq(PCC_ENABLE_FOUR, &bar0->pcc_enable); |
1142 | 1142 | ||
1143 | val64 = readq(&bar0->tx_fifo_partition_0); | 1143 | val64 = readq(&bar0->tx_fifo_partition_0); |
@@ -1875,7 +1875,7 @@ static int verify_pcc_quiescent(struct s2io_nic *sp, int flag) | |||
1875 | herc = (sp->device_type == XFRAME_II_DEVICE); | 1875 | herc = (sp->device_type == XFRAME_II_DEVICE); |
1876 | 1876 | ||
1877 | if (flag == FALSE) { | 1877 | if (flag == FALSE) { |
1878 | if ((!herc && (get_xena_rev_id(sp->pdev) >= 4)) || herc) { | 1878 | if ((!herc && (sp->pdev->revision >= 4)) || herc) { |
1879 | if (!(val64 & ADAPTER_STATUS_RMAC_PCC_IDLE)) | 1879 | if (!(val64 & ADAPTER_STATUS_RMAC_PCC_IDLE)) |
1880 | ret = 1; | 1880 | ret = 1; |
1881 | } else { | 1881 | } else { |
@@ -1883,7 +1883,7 @@ static int verify_pcc_quiescent(struct s2io_nic *sp, int flag) | |||
1883 | ret = 1; | 1883 | ret = 1; |
1884 | } | 1884 | } |
1885 | } else { | 1885 | } else { |
1886 | if ((!herc && (get_xena_rev_id(sp->pdev) >= 4)) || herc) { | 1886 | if ((!herc && (sp->pdev->revision >= 4)) || herc) { |
1887 | if (((val64 & ADAPTER_STATUS_RMAC_PCC_IDLE) == | 1887 | if (((val64 & ADAPTER_STATUS_RMAC_PCC_IDLE) == |
1888 | ADAPTER_STATUS_RMAC_PCC_IDLE)) | 1888 | ADAPTER_STATUS_RMAC_PCC_IDLE)) |
1889 | ret = 1; | 1889 | ret = 1; |
@@ -7078,23 +7078,6 @@ static void s2io_link(struct s2io_nic * sp, int link) | |||
7078 | } | 7078 | } |
7079 | 7079 | ||
7080 | /** | 7080 | /** |
7081 | * get_xena_rev_id - to identify revision ID of xena. | ||
7082 | * @pdev : PCI Dev structure | ||
7083 | * Description: | ||
7084 | * Function to identify the Revision ID of xena. | ||
7085 | * Return value: | ||
7086 | * returns the revision ID of the device. | ||
7087 | */ | ||
7088 | |||
7089 | static int get_xena_rev_id(struct pci_dev *pdev) | ||
7090 | { | ||
7091 | u8 id = 0; | ||
7092 | int ret; | ||
7093 | ret = pci_read_config_byte(pdev, PCI_REVISION_ID, (u8 *) & id); | ||
7094 | return id; | ||
7095 | } | ||
7096 | |||
7097 | /** | ||
7098 | * s2io_init_pci -Initialization of PCI and PCI-X configuration registers . | 7081 | * s2io_init_pci -Initialization of PCI and PCI-X configuration registers . |
7099 | * @sp : private member of the device structure, which is a pointer to the | 7082 | * @sp : private member of the device structure, which is a pointer to the |
7100 | * s2io_nic structure. | 7083 | * s2io_nic structure. |
@@ -7552,7 +7535,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
7552 | s2io_vpd_read(sp); | 7535 | s2io_vpd_read(sp); |
7553 | DBG_PRINT(ERR_DBG, "Copyright(c) 2002-2007 Neterion Inc.\n"); | 7536 | DBG_PRINT(ERR_DBG, "Copyright(c) 2002-2007 Neterion Inc.\n"); |
7554 | DBG_PRINT(ERR_DBG, "%s: Neterion %s (rev %d)\n",dev->name, | 7537 | DBG_PRINT(ERR_DBG, "%s: Neterion %s (rev %d)\n",dev->name, |
7555 | sp->product_name, get_xena_rev_id(sp->pdev)); | 7538 | sp->product_name, pdev->revision); |
7556 | DBG_PRINT(ERR_DBG, "%s: Driver version %s\n", dev->name, | 7539 | DBG_PRINT(ERR_DBG, "%s: Driver version %s\n", dev->name, |
7557 | s2io_driver_version); | 7540 | s2io_driver_version); |
7558 | DBG_PRINT(ERR_DBG, "%s: MAC ADDR: " | 7541 | DBG_PRINT(ERR_DBG, "%s: MAC ADDR: " |