libpayload/generic_hub: Detect port disconnect after reset

If a port disconnects after a reset we should abort any initialization
on the port. This might mean the device has re-enumerated as a 3.0 device
so the hub should be scanned again.

TEST=Verified USB-C devices that get detected correctly in depthcharge.

Change-Id: Iad899544684312df1bef08d69b5c7f41eac3a21c
Signed-off-by: Raul E Rangel <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Julius Werner <>
1 file changed