This is an automated email from Gerrit. "Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7162
-- gerrit commit 3626ed92a3ff662019d053a4fd45870e768e1cdf Author: Tomas Vanek <van...@fbl.cz> Date: Sun Sep 4 14:18:26 2022 +0200 flash/nor/psoc4: drop jtag_poll_mask() from flash write Polling the target makes no harm during PSoC 4 flash write in the current OpenOCD code. Don't mask it. Change-Id: I6625ded0162ee3a96b92188844d0d2d6c30101c2 Signed-off-by: Tomas Vanek <van...@fbl.cz> diff --git a/src/flash/nor/psoc4.c b/src/flash/nor/psoc4.c index 8ca1a7cfa8..1d2a56b862 100644 --- a/src/flash/nor/psoc4.c +++ b/src/flash/nor/psoc4.c @@ -651,9 +651,6 @@ static int psoc4_write(struct flash_bank *bank, const uint8_t *buffer, if (row_offset) memset(row_buffer, bank->default_padded_value, row_offset); - /* Mask automatic polling triggered by execution of halted events */ - bool save_poll_mask = jtag_poll_mask(); - while (count) { uint32_t chunk_size = psoc4_info->row_size - row_offset; if (chunk_size > count) { @@ -693,8 +690,6 @@ static int psoc4_write(struct flash_bank *bank, const uint8_t *buffer, } cleanup: - jtag_poll_unmask(save_poll_mask); - free(sysrq_buffer); return retval; } --