]> git.karo-electronics.de Git - mv-sheeva.git/commit
RDMA/nes: Fix incorrect SFP+ link status detection on driver init
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Wed, 24 Nov 2010 17:29:54 +0000 (17:29 +0000)
committerRoland Dreier <rolandd@cisco.com>
Sun, 16 Jan 2011 21:23:35 +0000 (13:23 -0800)
commit843276ad985cb59212ceb70d989474521ff516f6
treed8c80eb0e35533735e219dc94d5ea43bcde6cd6a
parent5f61b2c6939bb6d26393df15765bc3cb260db063
RDMA/nes: Fix incorrect SFP+ link status detection on driver init

During iw_nes initialization the link status for SFP+ PHY is always
detected as "up" regardless of real state (cable either connected or
disconnected).  Add SFP+ PHY specific link status detection to the
iw_nes initialization procedure.  Use link status recheck for
netdev_open to detect delayed state updates.

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_nic.c