File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
components/esp_hw_support/dma Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -392,10 +392,9 @@ esp_err_t gdma_config_transfer(gdma_channel_handle_t dma_chan, const gdma_transf
392392 // if MSPI encryption is enabled, and DMA wants to read/write external memory
393393 if (esp_flash_encryption_enabled ()) {
394394 gdma_hal_enable_access_encrypt_mem (hal , pair -> pair_id , dma_chan -> direction , config -> access_ext_mem );
395- // when DMA access the encrypted memory, extra alignment is needed, for both internal and external memory
395+ // when DMA access the encrypted memory, extra alignment is needed for external memory
396396 if (config -> access_ext_mem ) {
397397 ext_mem_alignment = MAX (ext_mem_alignment , GDMA_ACCESS_ENCRYPTION_MEM_ALIGNMENT );
398- int_mem_alignment = MAX (int_mem_alignment , GDMA_ACCESS_ENCRYPTION_MEM_ALIGNMENT );
399398 }
400399 } else {
401400 gdma_hal_enable_access_encrypt_mem (hal , pair -> pair_id , dma_chan -> direction , false);
You can’t perform that action at this time.
0 commit comments