ixgbe: fix errors related to protected AUTOC calls
authorDon Skidmore <donald.c.skidmore@intel.com>
Wed, 19 Mar 2014 09:16:26 +0000 (09:16 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 06:06:19 +0000 (23:06 -0700)
commitf8cf7a00d82b6c7b984adc917199cb63552957fb
treeb773e463c8fe12f273f61f8ef016aae202385154
parent0933ce4a9d68ae35dccfa592fa361c149df5d1af
ixgbe: fix errors related to protected AUTOC calls

Found several incorrect conditionals after calling the prot_autoc_*
functions. Likewise we weren't always freeing the FWSW semaphore after
grabbing it.   This would lead to DA cables being unable to link along with
possible other errors.

CC: Arun Sharma <asharma@fb.com>
CC: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c