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 <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/7162 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
cda39f929e
commit
92dd917f5a
|
@ -651,9 +651,6 @@ static int psoc4_write(struct flash_bank *bank, const uint8_t *buffer,
|
||||||
if (row_offset)
|
if (row_offset)
|
||||||
memset(row_buffer, bank->default_padded_value, 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) {
|
while (count) {
|
||||||
uint32_t chunk_size = psoc4_info->row_size - row_offset;
|
uint32_t chunk_size = psoc4_info->row_size - row_offset;
|
||||||
if (chunk_size > count) {
|
if (chunk_size > count) {
|
||||||
|
@ -693,8 +690,6 @@ static int psoc4_write(struct flash_bank *bank, const uint8_t *buffer,
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
jtag_poll_unmask(save_poll_mask);
|
|
||||||
|
|
||||||
free(sysrq_buffer);
|
free(sysrq_buffer);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue