On 6/23/19 3:20 PM, Marek Vasut wrote: > On 6/23/19 2:38 PM, Alexandre Belloni wrote: >> Hi Marek, >> >> On 23/06/2019 14:08:54+0200, Marek Vasut wrote: >>> Implement procfs interface for polling battery status of the RTC >>> via /proc/driver/rtc . >>> >> >> Please don't, this interface is deprecated and doesn't work well. Use >> RTC_VL_READ instead. > That's already implemented, the procfs one isn't, but fine by me. Oh, one more thing. The RTC_VL_READ only provides 1 bit of information, the state of BLF bit (Battery low/failed IIRC). The procfs interface is more verbose and provides explicit battery status (OK/low/exhausted). Is there an ioctl for this too ? -- Best regards, Marek Vasut