Re: [PATCH 1/2] Port rtc-pcf2123 to regmap

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

 



As I'm working on this I've run across some other issues:

* Driver does not do a software reset on init. Datasheet recommends doing
  this as this will clear any interrupts and alarm flags. The fix would
  presumably be to add a call to pcf2123_reset in the init, but...

* pcf2123_reset stops the RTC for no apparent reason. Result is that the
  time is invalid after a call to pcf2123_reset, which requires the time
  to be set again manually. The fix would be to delete the stop commands.

* I don't think pcf2123_read_offset is working correctly. In the case of
  a coarse offset the value is not being sign extended. So a negative
  offset read will not be correct if the coarse bit is set (result would
  be a positive number being returned if this is true). I need to look
  into this some more. The fix would be to sign extend first, then if
  coarse bit is set multiply the result by 2.

Not sure if I'll fix these issues right now. Also this RTC does have the 
ability to do periodic interrupts but the feature has not been implemented
in this driver. So I'll leave uie_unsupported set for now.

-- 
Dylan




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

  Powered by Linux