[PATCH u-boot-dm + u-boot-spi v3 10/11] mtd: compare also with OF path and device name in get_mtd_device_nm()
Marek Behun
marek.behun at nic.cz
Thu Feb 25 21:07:40 CET 2021
On Thu, 25 Feb 2021 14:31:42 -0500
Simon Glass <sjg at chromium.org> wrote:
> We should not need CONFIG_DM here...it should be enabled for all
> boards. You can always disable MTD for a board if not, or send a
> removable patch.
>
> If for some reason you do, please use if (IS_ENABLED() so that 'dev'
> can always be declared.
Simon, it still isn't enabled for all boards. For example
tqma6s_wru4_mmc_defconfig does not compile with this. I actually wrote
this into commit message:
Although CONFIG_DM is compulsory since v2020.01, there are still some
boards (for example tqma6s_wru4_mmc_defconfig) that don't enable it.
But if breaking such boards is not a problem anymore, I will gladly
just remove the ifdefs :) Should I?
Marek
More information about the U-Boot
mailing list