jlaitine commented on code in PR #19018:
URL: https://github.com/apache/nuttx/pull/19018#discussion_r3413777017
##########
drivers/mtd/Kconfig:
##########
@@ -50,6 +50,15 @@ config FTL_READAHEAD
default n
depends on DRVR_READAHEAD
+config FTL_BBM
+ bool "Enable bad block management in the FTL layer"
+ default y if MTD_NAND
Review Comment:
We could of course remove the debugassertion and flag out the isbad and
markbad from the struct if the bad block management is not enabled. Then a
broken driver / misconfiguration wouldn't even compile, solving your concern.
We are still talking about a theoretical bug in a minority case driver (just
check how many MTD drivers currently even implement the bbm in the upstream -
and to have something other than nand driver with sw bbm need is ... perhaps
remotely imaginable?).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]