mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
50db1bca55
Support the recently added DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK parameter in the ice flash update handler. Convert the overwrite mask bitfield into the appropriate preservation level used by the firmware when updating. Because there is no equivalent preservation level for overwriting only identifiers, this combination is rejected by the driver as not supported with an appropriate extended ACK message. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
13 lines
389 B
C
13 lines
389 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2018-2019, Intel Corporation. */
|
|
|
|
#ifndef _ICE_FW_UPDATE_H_
|
|
#define _ICE_FW_UPDATE_H_
|
|
|
|
int ice_flash_pldm_image(struct ice_pf *pf, const struct firmware *fw,
|
|
u8 preservation, struct netlink_ext_ack *extack);
|
|
int ice_check_for_pending_update(struct ice_pf *pf, const char *component,
|
|
struct netlink_ext_ack *extack);
|
|
|
|
#endif
|