[PW_SID:1060568] [v1] firmware: microchip: fail auto-update probe if no flash found#1541
[PW_SID:1060568] [v1] firmware: microchip: fail auto-update probe if no flash found#1541linux-riscv-bot wants to merge 1 commit into
Conversation
There's no point letting the driver probe if there is no flash, as trying to do a firmware upload will fail. Move the code that attempts to get the flash from firmware upload to probe, and let it emit a message to users stating why auto-update is not supported. The code currently could have a problem if there's a flash in devicetree, but the system controller driver fails to get a pointer to it from the mtd subsystem, which will cause mpfs_sys_controller_get_flash() to return an error. Check for errors and null, instead of just null, in the new clause. CC: stable@vger.kernel.org Fixes: ec5b0f1 ("firmware: microchip: add PolarFire SoC Auto Update support") Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
|
Patch 1: "[v1] firmware: microchip: fail auto-update probe if no flash found" |
PR for series 1060568 applied to workflow__riscv__fixes
Name: [v1] firmware: microchip: fail auto-update probe if no flash found
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1060568
Version: 1