From: Yevgeny Petrilin Date: Thu, 19 Mar 2009 02:45:11 +0000 (-0700) Subject: mlx4_core: Add link type autosensing X-Git-Tag: v2.6.30-rc1~665^2^8~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27bf91d6a0d5a9c7224e8687754249bba67dd4cf;p=pandora-kernel.git mlx4_core: Add link type autosensing When a port's link is down (except to driver restart) and the port is configured for auto sensing, we try to sense port link type (Ethernet or InfiniBand) in order to determine how to initialize the port. If the port type needs to be changed, all mlx4 for the device interfaces are unregistered and then registered again with the new port types. Sensing is done with intervals of 3 seconds. Signed-off-by: Yevgeny Petrilin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed