Re: [PATCH] eeprom: add non-cached sysfs read access to EEPROM data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux