powerpc/powernv: Check image loaded or not before calling flash
Present code checks for update_flash_data in opal_flash_term_callback().
update_flash_data has been statically initialized to zero, and that
is the value of FLASH_IMG_READY. Also code update initialization happens
during subsys init.
So if reboot is issued before the subsys init stage then we endup displaying
"Flashing new firmware" message.. which may confuse end user.
This patch fixes above described issue by initializes update_flash status
to invalid state.
Reported-by: Sam Bobroff <email address hidden>
Signed-off-by: Vasant Hegde <email address hidden>
Signed-off-by: Benjamin Herrenschmidt <email address hidden>
Patches required to support RAS on 14.04.3 kernel
commit 3f77df7f81526c9 32ef681eda56eea a75d0617da
Author: Vasant Hegde <email address hidden>
Date: Fri Feb 13 15:26:33 2015 +0530
powerpc/ powernv: Check image loaded or not before calling flash
Present code checks for update_flash_data in opal_flash_ term_callback( ). flash_data has been statically initialized to zero, and that
update_
is the value of FLASH_IMG_READY. Also code update initialization happens
during subsys init.
So if reboot is issued before the subsys init stage then we endup displaying
"Flashing new firmware" message.. which may confuse end user.
This patch fixes above described issue by initializes update_flash status
to invalid state.
Reported-by: Sam Bobroff <email address hidden>
Signed-off-by: Vasant Hegde <email address hidden>
Signed-off-by: Benjamin Herrenschmidt <email address hidden>