Re: [PATCH] eeprom: at24: wait for write cycle before releasing runtime PM
From: Kristian Otnes (kotnes)
Date: Fri Nov 27 2026 - 09:21:45 EST
This is ONLY a check for a detail on this patch, in case it has not been considered. It is not intended as a vote against the patch:
The at24 driver is presumably very old and was designed in a way with checking if eeprom is accessible BEFORE reading or writing. That takes care of the delayed internal write process. One can speculate why this approach was used, but it does avoid delays on occasional writes, since no wait added after final byte/page write, and potentially completed on next later access. The question is, should that concept be changed by now always adding a wait after a write?
The subtle problem documented for causing this patch was caused by the PM support added much later. If one wants to keep the original at24 design behavior, maybe one should look into how PM support to driver is handled. Either look into if PM autosuspend can be used or possibly only add a delay/polling if the device is under PM management (ie consumer registered or something).