summaryrefslogtreecommitdiff
path: root/drivers/acpi/parser/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2026-03-03 11:24:06 +0000
committerConor Dooley <conor.dooley@microchip.com>2026-03-26 11:14:11 +0000
commitc7596f9001e2b83293e3658e4e1addde69bb335d (patch)
tree9bc73980734c3d388f7012c9bb47313323b70229 /drivers/acpi/parser/git@git.tavy.me:linux.git
parent3bfc213d4675736567a4e263c51c25144d565949 (diff)
firmware: microchip: fail auto-update probe if no flash found
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: ec5b0f1193ad4 ("firmware: microchip: add PolarFire SoC Auto Update support") Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'drivers/acpi/parser/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions