Skip to content
Commit c9bcc056 authored by Steve Wilkins's avatar Steve Wilkins Committed by Greg Kroah-Hartman
Browse files

firmware: microchip: fix incorrect error report of programming:timeout on success

[ Upstream commit 591940e22e287fb64ac07be275e343d860cb72d6 ]

After successfully programming the SPI flash with an MFPS auto update
image, the error sysfs attribute reports programming:timeout.
This is caused by an incorrect check on the return value from
wait_for_completion_timeout() in mpfs_auto_update_poll_complete().

Fixes: ec5b0f11

 ("firmware: microchip: add PolarFire SoC Auto Update support")
Signed-off-by: default avatarSteve Wilkins <steve.wilkins@raymarine.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ac36a817
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment