mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
aes/sha: fixed driver reseting the wrong GDMA channel
Driver was using the channel ID from tx when reseting rx. But since rx and tx is not necessarily from the same pair this could lead to the driver reseting the wrong DMA channel.
This commit is contained in:
parent
f80c0e8d31
commit
d5d126b73e
@ -141,7 +141,7 @@ esp_err_t esp_crypto_shared_gdma_start(const lldesc_t *input, const lldesc_t *ou
|
||||
}
|
||||
|
||||
/* tx channel is reset by gdma_connect(), also reset rx to ensure a known state */
|
||||
gdma_get_channel_id(tx_channel, &rx_ch_id);
|
||||
gdma_get_channel_id(rx_channel, &rx_ch_id);
|
||||
gdma_ll_rx_reset_channel(&GDMA, rx_ch_id);
|
||||
|
||||
gdma_start(tx_channel, (intptr_t)input);
|
||||
|
Loading…
Reference in New Issue
Block a user