Re: Armada RTC power up reset

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

 



On 11/12/2017 at 20:14:00 +0200, Rabeeh Khoury wrote:
> The first; sets the values to a know good state (including time=0) on it's
> probe() -
> https://pastebin.com/ubqwEBBM
> 

No, as explained that would be bad for userspace as it will have now way
to know whether the time is correct or not (you may as well not have any
RTC at all).

> Second return -EPERM on an uninitialized RTC until first write resets it's
> values to a known condition on first write (as Gregory suggest) -
> https://pastebin.com/r7sydF8G
> 

-EINVAL is the proper error code for an uninitialized RTC but yes, that
would be the idea.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



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

  Powered by Linux