RDMA/nes: Fix adapter reset after PXE boot
authorChien Tung <ctung@neteffect.com>
Wed, 23 Apr 2008 18:55:45 +0000 (11:55 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 23 Apr 2008 18:55:45 +0000 (11:55 -0700)
commitbc5698f3ecc9587e1edb343a2878f8d228c49e0e
tree3f16097356e04c4b023d31ee920e6804fe57ecce
parente447703123d817b3f802c6eb69171d5342c8832e
RDMA/nes: Fix adapter reset after PXE boot

After PXE boot, the iw_nes driver does a full reset to ensure the card
is in a clean state.  However, it doesn't wait for firmware to
complete its work before issuing a port reset to enable the ports,
which leads to problems bringing up the ports.

The solution is to wait for firmware to complete its work before
proceeding with port reset.

This bug was flagged by Roland Dreier <rolandd@cisco.com>.

Cc: <stable@kernel.org>
Signed-off-by: Chien Tung <ctung@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_hw.c