Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HiKeyFastboot: Add short delay after flush to avoid reboot hang
We've frequently seen hangs after flashing partitions on HiKey. It tends to happen when the flash and reboot commands happen very close together: $ fastboot flash <partition> <image>; fastboot reboot; Tracing through this, the Flush completes, and then we process the fastboot reboot command, which issues the PSCI_RESET command and we seem to hang in PSCI_RESET. This seems to point to some sort of a hardware issue where the RESET command may not actually trigger the hardware to reset if there's some sort of IO still in flight. The flush command shouldn't return early, but something is not quite right here. In order to avoid the issue, this patch adds a short delay after the flush command. With this delay, I can no longer trigger the reset hang. Change-Id: I9ccbcdcc597c4546808777c06ecd3f252df15008 Signed-off-by: John Stultz <[email protected]>
- Loading branch information