jlaitine commented on code in PR #19018:
URL: https://github.com/apache/nuttx/pull/19018#discussion_r3413686364
##########
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:
If the MTD driver implements the markbad and isbad and is not a NAND driver
(NAND drivers already select it by default), it can also "select" it by the
same configuration flag which enables that driver, to avoid misconfiguration.
We definitely don't want to set it for all MTD_PARTITIONs, because it is
very rare case when it is needed. That would void the purpose of the whole
flag. There are only a few drivers which need the bad block management, and for
all the others it is only dead weight.
--
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]