phb4: Workaround phy lockup by doing full PHB reset on retry
phb4: Workaround phy lockup by doing full PHB reset on retry

For PHB4 it's possible that the phy may end up in a bad state where it
can no longer recieve data. This can manifest as the link not
retraining. A simple PERST will not clear this. The PHB must be
completely reset.

This changes the retry state to CRESET to do this.

This issue may also manifest itself as the link training in a degraded
state (lower speed or narrower width). This patch doesn't attempt to
fix that (will come later).

Signed-off-by: Michael Neuling <7b0ab45a730e48a69239010b5b8fe5fa4e8eaac6@neuling.org>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

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