Similar to the 'reset_dev_on_drv_probe' devlink parameter, it is useful to have an unknown value which can be used by drivers to report that the hardware value isn't recognized or is otherwise invalid instead of failing the operation. This is especially useful for u8/enum parameters.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -203,6 +203,7 @@ enum devlink_param_fw_load_policy_value { · 202 unmodified lines | ||
| 203 | 203 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER, |
| 204 | 204 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH, |
| 205 | 205 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK, |
| 206 | + DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN, | |
| 206 | 207 | }; |
| 207 | 208 | |
| 208 | 209 | enum devlink_param_reset_dev_on_drv_probe_value { |