ice: Ignore EMODE when setting PHY config
authorChinh T Cao <chinh.t.cao@intel.com>
Sat, 16 May 2020 00:55:06 +0000 (17:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 31 May 2020 11:01:16 +0000 (04:01 -0700)
commitb5e19a642b7ed3d9e6de746957226a7ae726d226
tree651571d8bf14b7222fe17a75be2eb30f94e042c0
parentd5329be9907723a646f8874388cdaaccba988b4d
ice: Ignore EMODE when setting PHY config

When setting the PHY cfg (CQ cmd 0x0601), if the firmware responds
with an EMODE error, software will ignore the error as it simply
means that manageability (ex: BMC) is in control of the link and that
the new setting may not be applied.

Signed-off-by: Chinh T Cao <chinh.t.cao@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_main.c