ram: stm32: fix strsep failed on read only memory
authordillon min <dillon.minfei@gmail.com>
Fri, 9 Apr 2021 07:28:45 +0000 (15:28 +0800)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 9 Apr 2021 09:53:00 +0000 (11:53 +0200)
commit1f0305e0d00e5b72d0ce4e279ec680ee8161e319
treeb534163a44ebf48a4063d91806bc4d3c9f76c8c6
parentf132c4967e416b6670d7a531c6a293f835177f82
ram: stm32: fix strsep failed on read only memory

strsep will change data from original memory address,
in case the memory is in non-sdram/sram place, will
run into a bug(hang at SDRAM: )

just add a temporary array to store bank_name[] to fix this
bug.

Signed-off-by: dillon min <dillon.minfei@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/ram/stm32_sdram.c