TCPMv2: Hand over Hard Reset send request to PE when available
TCPMv2: Hand over Hard Reset send request to PE when available

When calling pd_send_hard_reset() PD_EVENT_SEND_HARD_RESET event
is sent. This event is handled in tc_event_check() function,
tc_hard_reset_request() is called and TC_FLAGS_HARD_RESET_REQUESTED
is set. As a consequence Type-C layer performs Hard Reset without
sending any information to port partner. In addition when PE is
available, Type-C layer will set PE_FLAGS_PS_RESET_COMPLETE PE flag
unexpectedly.

This is fixed by passing Hard Reset send request to PE layer which
will perform it correctly.

Currently Hard Reset send using PD_EVENT_SEND_HARD_RESET is used
only as reaction to overcurrent.

BUG=b:160243307
BRANCH=none
TEST=make -j buildall

Signed-off-by: Patryk Duda <6aed17a362577cf10cb5675888c1635d522769c1@semihalf.com>
Change-Id: I71bd073a466942d86194cec1aa3787946b695924
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2618003
Reviewed-by: Diana Z <cb2016afc7183e5356c690dc63b4ba817470501a@chromium.org>

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