]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix the FWSM.PT check in ixgbe_mng_present()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 11 Sep 2017 21:21:36 +0000 (14:21 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 17:05:19 +0000 (10:05 -0700)
commiteaf4f25051b0c4c4999e1f816043e42b5cbdc53b
treecbf4cb45f61804087c070d10e1f5ea888cc3fced
parentc7c7ff37f6191e711e0d2fe8650f5cba87e9d254
ixgbe: fix the FWSM.PT check in ixgbe_mng_present()

Bits other than FWSM.PT can be set in IXGBE_SWFW_MODE_MASK making the
previous check invalid.

Change the check for MNG present to be only based on FWSM.PT bit.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c