Skip to content
Commit afc8c252 authored by Göran Weinholt's avatar Göran Weinholt Committed by Kumar Gala
Browse files

drivers: flash: stm32h7x: handle ECC errors on read



The STM32H7x flash has an integrated ECC that can correct single
errors and detect double errors. When a double ECC error is detected,
the DBECCERR1/2 flag is raised and there is a bus fault.

We now mask this bus fault and check the error flags. ECC errors are
logged with the offset of the data. Single ECC errors cause a warning
to be logged and double ECC errors return -EIO.

Fixes #33140.

Signed-off-by: default avatarGöran Weinholt <goran.weinholt@endian.se>
parent 1004d556
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment