tcpmv2: hard reset AutoDischarge enable only when needed
tcpmv2: hard reset AutoDischarge enable only when needed

The allow unattach path is common code in PE and
it gets called even if we are not doing Hard Reset.
This can change AutoDischarge to be incorrect during
a PR Swap.  So guard this code to only being performed
if we are actually in a Hard Reset.

BUG=none
BRANCH=none
TEST=check Hard Reset and PR Swap

Signed-off-by: Denis Brockus <6b21e8190fb5e373363fb95271367073a16474ef@google.com>
Change-Id: Ie7e9084d41432d6c449aaaa189b3a55d0dd7f780
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2196642
Tested-by: Denis Brockus <6b21e8190fb5e373363fb95271367073a16474ef@chromium.org>
Auto-Submit: Denis Brockus <6b21e8190fb5e373363fb95271367073a16474ef@chromium.org>
Reviewed-by: Diana Z <cb2016afc7183e5356c690dc63b4ba817470501a@chromium.org>
Reviewed-by: Edward Hill <db1406b34e091703092b6b136bdfeb2c8125fc0e@chromium.org>
Commit-Queue: Denis Brockus <6b21e8190fb5e373363fb95271367073a16474ef@chromium.org>

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