usb-pd: preprocess pending interrupts after reset
usb-pd: preprocess pending interrupts after reset

If the EC resets while the TCPC interrupt line is asserted and the board
configures the interrupt as edge trigger (which is very common), then
the interrupt line will never present and edge and the ISR will never
get called.

Preemptively checking for pending interrupts should prevent this.

BRANCH=none
BUG=b:119564103
TEST=test that ec reboot with hub attached no longer malfunctions.

Change-Id: I77ca5815e2bdc94e3173a621aeac8620bf332613
Signed-off-by: Jett Rink <9d4aef0593e6843318d99df31597fb6153b89787@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1337466
Reviewed-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>

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