Fix infinite loop in wait_for_resource if CAPP ucode load fails
Fix infinite loop in wait_for_resource if CAPP ucode load fails

On failing to load CAPP microcode, we would call wait_for_resource_loaded
for the next PHB but without issuing a new request, thus making
wait_for_resource spin forever waiting for something that will
never complete.

Fix is to just track result of load.

Reported-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>
Acked-by: Alistair Popple <e9adbcf81c8a36ccc628e09bc92d0e25e1c8e501@popple.id.au>

shenki/skiboot,mikey/skiboot,qemu/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,ddstreet/skiboot,qemu/skiboot,stewart-ibm/skiboot,legoater/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,csmart/skiboot,open-power/skiboot,apopple/skiboot,open-power/skiboot,legoater/skiboot,apopple/skiboot,mikey/skiboot,ddstreet/skiboot,stewart-ibm/skiboot,shenki/skiboot,csmart/skiboot,ddstreet/skiboot,qemu/skiboot,open-power/skiboot,csmart/skiboot,open-power/skiboot,mikey/skiboot,shenki/skiboot,legoater/skiboot,shenki/skiboot,stewart-ibm/skiboot,apopple/skiboot