TCPMv2: Detach before disabling PD
TCPMv2: Detach before disabling PD

Set TC state as if it were entering an Unattached state when entering an
open state, so that accesses to TC state during open states return
coherent results.

BUG=b:182401047
TEST=Run ectool typecstatus with PD suspended; events are cleared
BRANCH=firmware-volteer-13672.B-main

Change-Id: I17d64459452c2671dddd8f4b6ff11124c09ace72
Signed-off-by: Abe Levkoy <2e1ad7039298f93262cf06bbb457275fb3e2ecb5@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752798
Reviewed-by: Diana Z <cb2016afc7183e5356c690dc63b4ba817470501a@chromium.org>
Commit-Queue: Diana Z <cb2016afc7183e5356c690dc63b4ba817470501a@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec