aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-03-26 12:39:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-27 03:46:58 -0400
commit68f40c10292a94762956896d4d320a2620945adc (patch)
tree9f6a860e6bac0efe5f322c87914555fe8aaf71a5 /drivers/net/cxgb3
parent3fa58c883d44c50b48f2d57a0bc626a7812b0cae (diff)
cxgb3: use resource_size_t for mmio declarations
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>
Diffstat (limited to 'drivers/net/cxgb3')
-rwxr-xr-xdrivers/net/cxgb3/cxgb3_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 8ad5f3299baf..e2b119312a00 100755
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -2871,6 +2871,9 @@ static void t3_io_resume(struct pci_dev *pdev)
2871{ 2871{
2872 struct adapter *adapter = pci_get_drvdata(pdev); 2872 struct adapter *adapter = pci_get_drvdata(pdev);
2873 2873
2874 CH_ALERT(adapter, "adapter recovering, PEX ERR 0x%x\n",
2875 t3_read_reg(adapter, A_PCIE_PEX_ERR));
2876
2874 t3_resume_ports(adapter); 2877 t3_resume_ports(adapter);
2875} 2878}
2876 2879
@@ -3003,7 +3006,7 @@ static int __devinit init_one(struct pci_dev *pdev,
3003 static int version_printed; 3006 static int version_printed;
3004 3007
3005 int i, err, pci_using_dac = 0; 3008 int i, err, pci_using_dac = 0;
3006 unsigned long mmio_start, mmio_len; 3009 resource_size_t mmio_start, mmio_len;
3007 const struct adapter_info *ai; 3010 const struct adapter_info *ai;
3008 struct adapter *adapter = NULL; 3011 struct adapter *adapter = NULL;
3009 struct port_info *pi; 3012 struct port_info *pi;