cxgb3: use resource_size_t for mmio declarations
authorDivy Le Ray <divy@chelsio.com>
Thu, 26 Mar 2009 16:39:19 +0000 (16:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2009 07:46:58 +0000 (00:46 -0700)
Use resource_size_t to declare mmio start and len variables.
Print PEX error register after EEH resumed.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_main.c

index 8ad5f3299baf36ccfdc07fcbe0ebb2bb7f1eb58b..e2b119312a00e691cfc653d8ee2b9f6a748d3f7e 100755 (executable)
@@ -2871,6 +2871,9 @@ static void t3_io_resume(struct pci_dev *pdev)
 {
        struct adapter *adapter = pci_get_drvdata(pdev);
 
+       CH_ALERT(adapter, "adapter recovering, PEX ERR 0x%x\n",
+                t3_read_reg(adapter, A_PCIE_PEX_ERR));
+
        t3_resume_ports(adapter);
 }
 
@@ -3003,7 +3006,7 @@ static int __devinit init_one(struct pci_dev *pdev,
        static int version_printed;
 
        int i, err, pci_using_dac = 0;
-       unsigned long mmio_start, mmio_len;
+       resource_size_t mmio_start, mmio_len;
        const struct adapter_info *ai;
        struct adapter *adapter = NULL;
        struct port_info *pi;