pd: restore CC resistor if fail power swap
pd: restore CC resistor if fail power swap

Fix bug where if a power swap fails in the final stages, it
will have switched its CC resistor, but will not have actually
switched roles, which causes all sorts of weirdness.

BUG=none
BRANCH=samus
TEST=make buildall. tested power swap between two samus'. modified
one samus to never send PS_RDY when in PD_STATE_SNK_SWAP_COMPLETE,
and verified that when source asks for power swap and fails, that
it properly resets CC to pull-up.

Change-Id: If0fc8d3d51ede3be1160ae3b106061edabeaa948
Signed-off-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/231193
Reviewed-by: Vincent Palatin <70a9964ec8fd10b0b08fcc8623c2add25ddf99ac@chromium.org>
Reviewed-by: Todd Broch <035f5b1f817cbb94019cec357b99778115602b63@chromium.org>

longsleep/ec,md5555/ec,fourier49/BIZ_EC,fourier49/BIZ_EC,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,md5555/ec,md5555/ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,longsleep/ec,fourier49/BZ_DEV_EC,md5555/ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,longsleep/ec,eatbyte/chromium-ec,coreboot/chrome-ec,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,longsleep/ec,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,mtk09422/chromiumos-platform-ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,eatbyte/chromium-ec,coreboot/chrome-ec,eatbyte/chromium-ec,fourier49/BIZ_EC