Jean, In 2.6.25, I used this patch successfully for read-only access to some SFP EEPROMs: - 0x50 - vendor/part info (caching OK) - 0x51 - real-time diagnostics data (caching not OK) I only care about read-only access to these EEPROMs. And, actually, I don't want to provide write access at all. In 2.6.31, I'd like to continue using this same legacy driver for SFP EEPROM access, with the option of bypassing the cache. -- Petri On Wed, Sep 2, 2009 at 1:30 AM, Jean Delvare<khali@xxxxxxxxxxxx> wrote: > Hi Petri, > > On Tue, 1 Sep 2009 16:15:00 -0700 (PDT), Petri Gynther wrote: >> Add "eeprom-nc" sysfs attribute to provide non-cached read access >> to EEPROM data. This is needed because some EEPROM-like devices >> contain constantly changing real-time diagnostic data that cannot >> be cached in kernel memory. >> >> Signed-off-by: Petri Gynther <pgynther@xxxxxxxxxx> >> --- >> drivers/misc/eeprom/eeprom.c | 30 +++++++++++++++++++++++++++--- >> 1 files changed, 27 insertions(+), 3 deletions(-) > > You are using the wrong driver for the task. The "eeprom" driver is a > legacy driver solely meant for SPD and EDID EEPROMs, and these do never > change, thus the caching mechanism. Please look at the new "at24" > driver for accessing any other EEPROM type. > > -- > Jean Delvare > -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html