diff options
-rw-r--r-- | chip/stm32/flash-stm32f.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/chip/stm32/flash-stm32f.c b/chip/stm32/flash-stm32f.c index 52220e4d23..7c41498377 100644 --- a/chip/stm32/flash-stm32f.c +++ b/chip/stm32/flash-stm32f.c @@ -282,23 +282,6 @@ int flash_physical_erase(int offset, int size) { int res = EC_SUCCESS; -#ifdef CONFIG_USB_PD_FLASH_ERASE_CHECK - /* - * During flash erase operation, read is stalled and thus interrupt - * might be serviced later. This can cause PD communication to fail. - * This is unlikely going to affect normal users as they have - * batteries. However, print a warning in the console for developers - * without a battery. - * - * TODO(crosbug.com/p/31362): Remove this when PD ping is disabled. - */ - if (battery_is_present() != BP_YES) { - ccprintf("WARNING: Performing flash erase while running on " - "USB PD power only!\n"); - cflush(); - } -#endif - if (unlock(PRG_LOCK) != EC_SUCCESS) return EC_ERROR_UNKNOWN; |