Re: [PATCH v3 3/4] rtc: isl1208: Add new style nvmem support to driver

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

 



On 12/02/2019 02:34:05+0000, Trent Piepho wrote:
> Add support for the RTC's NVRAM using the standard nvmem support that is
> part of the Linux RTC framework.
> 
> This driver already has a sysfs attribute that provides access to the
> RTC's NVRAM as a single 16-bit value.  Some chips have more than two
> bytes of NVRAM, so this will not work for them.  It's also non-standard.
> 
> This sysfs attribute is left in for backward compatibility, but will only
> be able to read the first two bytes of NVRAM.  The nvmem interface will
> allow access to all NVRAM, e.g. eight bytes on the isl1218.
> 
> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx>
> Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
> Signed-off-by: Trent Piepho <tpiepho@xxxxxxxxxx>
> ---
>  drivers/rtc/rtc-isl1208.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 
Applied, thanks.

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux