diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2024-02-21 10:08:12 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-02-28 11:20:36 -0600 |
commit | 75d7af409f46df07c6e29d1caf8a95345492ecc1 (patch) | |
tree | acaba0ed62478ab978e1d0babe3ac67f840ae824 /bsps | |
parent | build: Fix script action (diff) | |
download | rtems-75d7af409f46df07c6e29d1caf8a95345492ecc1.tar.bz2 |
bsps/xnandpsu: Allow creation of BBT
This fixes a logic inversion that was preventing creation of a Bad Block
Table (BBT) from scratch on devices that lack one. This was discovered
during upstream integration testing. The BBT management layer in this
driver is not designed to be easily testable other than on real hardware.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/shared/dev/nand/xnandpsu_bbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/shared/dev/nand/xnandpsu_bbm.c b/bsps/shared/dev/nand/xnandpsu_bbm.c index b8428a7328..40cf798965 100644 --- a/bsps/shared/dev/nand/xnandpsu_bbm.c +++ b/bsps/shared/dev/nand/xnandpsu_bbm.c @@ -653,7 +653,7 @@ static s32 XNandPsu_WriteBbt(XNandPsu *InstancePtr, XNandPsu_BbtDesc *Desc, for(Index = 0U; Index < Desc->MaxBlocks; Index++) { Block = (EndBlock - Index); #ifdef __rtems__ - if (XNandPsu_IsBlockBad(InstancePtr, Block) == XST_FAILURE) { + if (XNandPsu_IsBlockBad(InstancePtr, Block) != XST_FAILURE) { continue; } #else |