Skip to content

Commit

Permalink
cxgb3: use resource_size_t for mmio declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Divy Le Ray authored and David S. Miller committed Mar 27, 2009
1 parent 3fa58c8 commit 68f40c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 68f40c1

Please sign in to comment.