File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
drivers/base/firmware_loader Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ static const char * const fw_upload_err_str[] = {
27
27
[FW_UPLOAD_ERR_INVALID_SIZE ] = "invalid-file-size" ,
28
28
[FW_UPLOAD_ERR_RW_ERROR ] = "read-write-error" ,
29
29
[FW_UPLOAD_ERR_WEAROUT ] = "flash-wearout" ,
30
+ [FW_UPLOAD_ERR_FW_INVALID ] = "firmware-invalid" ,
30
31
};
31
32
32
33
static const char * fw_upload_progress (struct device * dev ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ struct firmware {
27
27
* @FW_UPLOAD_ERR_INVALID_SIZE: invalid firmware image size
28
28
* @FW_UPLOAD_ERR_RW_ERROR: read or write to HW failed, see kernel log
29
29
* @FW_UPLOAD_ERR_WEAROUT: FLASH device is approaching wear-out, wait & retry
30
+ * @FW_UPLOAD_ERR_FW_INVALID: invalid firmware file
30
31
* @FW_UPLOAD_ERR_MAX: Maximum error code marker
31
32
*/
32
33
enum fw_upload_err {
@@ -38,6 +39,7 @@ enum fw_upload_err {
38
39
FW_UPLOAD_ERR_INVALID_SIZE ,
39
40
FW_UPLOAD_ERR_RW_ERROR ,
40
41
FW_UPLOAD_ERR_WEAROUT ,
42
+ FW_UPLOAD_ERR_FW_INVALID ,
41
43
FW_UPLOAD_ERR_MAX
42
44
};
43
45
Original file line number Diff line number Diff line change @@ -1132,6 +1132,7 @@ static const char * const fw_upload_err_str[] = {
1132
1132
[FW_UPLOAD_ERR_INVALID_SIZE ] = "invalid-file-size" ,
1133
1133
[FW_UPLOAD_ERR_RW_ERROR ] = "read-write-error" ,
1134
1134
[FW_UPLOAD_ERR_WEAROUT ] = "flash-wearout" ,
1135
+ [FW_UPLOAD_ERR_FW_INVALID ] = "firmware-invalid" ,
1135
1136
};
1136
1137
1137
1138
static void upload_err_inject_error (struct test_firmware_upload * tst ,
You can’t perform that action at this time.
0 commit comments