diff options
author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2023-06-22 10:57:45 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-07-27 22:54:51 +0200 |
commit | 720fb4b83b565c7ae31059620e960ecbf5dc73a3 (patch) | |
tree | 8836e71067745337dd01963ef93a037ffb7c605c /drivers/rtc/rtc-cadence.c | |
parent | 31f077c374a8e7cf1960560c0c5e4065048557c0 (diff) |
rtc: pcf2127: improve timestamp reading performance
Reading the 7 timetamp registers currently involves reading 25 registers
solely to be able to print the content of the three control registers,
in addition to the 7 timestamp registers. This print never occurs,
unless the user enables dynamic debug in this driver or set
CONFIG_RTC_DEBUG.
Reading the timestamp registers should consist of reading 7
consecutive timestamp registers.
This patch optimize the performance of reading the timestamp registers
by reading 7 consecutive registers instead of 25, and dropping the
print of the control registers.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20230622145800.2442116-3-hugo@hugovil.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-cadence.c')
0 files changed, 0 insertions, 0 deletions