linux/drivers/net/ethernet/intel
Jacob Keller be49b1ad29 ice: preserve NVM capabilities in safe mode
If the driver initializes in safe mode, it will call
ice_set_safe_mode_caps. This results in clearing the capabilities
structures, in order to set them up for operating in safe mode, ensuring
many features are disabled.

This has a side effect of also clearing the capability bits that relate
to NVM update. The result is that the device driver will not indicate
support for unified update, even if the firmware is capable.

Fix this by adding the relevant capability fields to the list of values
we preserve. To simplify the code, use a common_cap structure instead of
a handful of local variables. To reduce some duplication of the
capability name, introduce a couple of macros used to restore the
capabilities values from the cached copy.

Fixes: de9b277ee0 ("ice: Add support for unified NVM update flow capability")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Brijesh Behera <brijeshx.behera@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-09-30 08:32:35 -07:00
..
e1000 e1000: Remove unnecessary usages of memset 2020-07-30 10:51:25 -07:00
e1000e treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
fm10k fm10k: convert to new udp_tunnel_nic infra 2020-07-14 17:04:27 -07:00
i40e i40e: always propagate error value in i40e_set_vsi_promisc() 2020-09-09 15:06:24 -07:00
iavf iavf: Fix incorrect adapter get in iavf_resume 2020-09-25 07:39:24 -07:00
ice ice: preserve NVM capabilities in safe mode 2020-09-30 08:32:35 -07:00
igb treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
igbvf igbvf: use generic power management 2020-07-30 08:36:08 -07:00
igc igc: Fix not considering the TX delay for timestamps 2020-09-09 15:06:24 -07:00
ixgb pci-v5.9-changes 2020-08-07 18:48:15 -07:00
ixgbe net: core: introduce struct netdev_nested_priv for nested interface infrastructure 2020-09-28 15:00:15 -07:00
ixgbevf Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2020-08-03 18:27:40 -07:00
e100.c e100: use generic power management 2020-07-30 10:50:55 -07:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00