staging/rdma/hfi1: Get port type from configuration file
authorEaswar Hariharan <easwar.hariharan@intel.com>
Wed, 3 Feb 2016 22:31:22 +0000 (14:31 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:47 +0000 (20:37 -0500)
commit1d01cf33e38a6aff87c25575286385daac11b8ca
tree26486ebf4a83e4951708ec58f7b9d64c4f0d9b04
parent8ebd4cf1852afb56773ce8818da22157bfffa900
staging/rdma/hfi1: Get port type from configuration file

The current code employs a heuristic to guess the port type.
The canonical location to identify the port type of the
designed platform is from the platform configuration data.

This patch uses the previously fetched port type from the platform
configuration and removes the now obsolete heuristic routine
and its associated defines.

Reviewed-by: Arthur Kepner <arthur.kepner@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/mad.c
drivers/staging/rdma/hfi1/opa_compat.h