hw/phb4: Remove FRESET presence check
hw/phb4: Remove FRESET presence check

When we do an freset the first step is to check if a card is present in
the slot. However, this only occurs when we enter phb4_freset() with the
slot state set to SLOT_NORMAL. This occurs in:

 a) The creset path, and
 b) When the OS manually requests an FRESET via an OPAL call.

a) is problematic because in the boot path the generic code will put the
slot into FRESET_START manually before calling into phb4_freset(). This
can result in a situation where a device is detected on boot, but not
after a CRESET.

I've noticed this occurring on systems where the PHB's slot presence
detect signal is not wired to an adapter. In this situation we can rely
on the in-band presence mechanism, but the presence check will make
us exit before that has a chance to work.

Additionally, if we enter from the CRESET path this early exit leaves
the slot's PERST signal being left asserted. This isn't currently an issue,
but if we want to support hotplug of devices into the root port it will
be.

Signed-off-by: Oliver O'Halloran <3dfaff8fa6ae977f042064a112a6aac576279b9b@gmail.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

legoater/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,legoater/skiboot,shenki/skiboot,qemu/skiboot,open-power/skiboot,stewart-ibm/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,shenki/skiboot,stewart-ibm/skiboot,shenki/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,qemu/skiboot,open-power/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot