On Wed, Oct 28, 2026 at 04:01:55PM -0500, Ryan Brue wrote: > nvmem.c reads and writes cells on UCLASS_MISC devices with misc_read() and > misc_write(), so a build with NVMEM but without MISC fails to link, even > when every cell it uses is on an RTC or an I2C EEPROM. The headers of > those two providers have stubs for this case; give misc.h the same. > > Signed-off-by: Ryan Brue <[email protected]> > --- > Ran into this while working on the Amazon Fire HD 10 (2017, MediaTek > MT8173), whose U-Boot port is not upstream yet: it keeps its reboot mode > in an RTC spare byte through nvmem-reboot-mode and has no misc devices, > and with NVMEM and DM_RTC but no MISC, the link fails on misc_read() and > misc_write() from nvmem.c. With this patch it links and the mode is read > and cleared on the board. > > Developed this patch with the help of an LLM. > ---
Thank you for disclosing using an LLM. LLMs are discouraged in the project, but this looks fine. -- Tom
signature.asc
Description: PGP signature
