IB/mthca: Fix driver when sizeof (phys_addr_t) > sizeof (long)
authorJohn L. Burr <jlburr@cadence.com>
Wed, 12 Jan 2011 04:39:46 +0000 (20:39 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 12 Jan 2011 04:39:47 +0000 (20:39 -0800)
commiteb4a7cbf27082bea34764bab3bc85595683f967b
tree4d0d799a04c7d62d9ceb35e73f01112a49dc5d83
parent4162cf64973df51fc885825bc9ca4d055891c49f
IB/mthca: Fix driver when sizeof (phys_addr_t) > sizeof (long)

Some systems have PCI addresses that don't fit in unsigned long (eg some
32-bit PowerPC 440 systems have 36-bit bus addresses).  Fix up the driver
by using phys_addr_t where appropriate, so we don't truncate any PCI
resource addresses before ioremapping them.

Signed-off-by: John L. Burr <jlburr@cadence.com>
[ Update to apply to current driver source.  - Roland ]

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_catas.c
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_mr.c