[BPI-R4] mtk_soc_eth should selects automatically CONFIG_SRAM

Hi all,

I’ve notice starting with Linux Kernel 6.17 a new patch into mtk_soc_eth using SRAM. But if you complie the kernel without CONFIG_SRAM, everything is compiled but when you boot the kernel you get this error:

[    0.000000] psci: probing for conduit method from DT.
[    1.847587] mtk_soc_eth 15100000.ethernet: Could not get SRAM pool
[    1.857263] mtk_soc_eth 15100000.ethernet: probe with driver mtk_soc_eth failed with error -22

Looking into arch/arm64/boot/dts for mt7988a and in arch/arm64/configs I saw new dependency of SRAM. But when you select the driver in Kernel sources, it doesn’t automatically selects CONFIG_SRAM.

There is a reason why?