Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: rx8111: demote warnings to debug level

The proper way for userspace to react on a read time error is to have a
look at the voltage low information. There is no point in cluttering dmesg
as it is often not even visible to the end user.

Reviewed-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://lore.kernel.org/r/20240417191937.33790-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

+5 -5
+5 -5
drivers/rtc/rtc-rx8111.c
··· 170 170 } 171 171 172 172 if (FIELD_GET(RX8111_FLAG_XST_BIT, regval)) { 173 - dev_warn(data->dev, 174 - "Crystal oscillation stopped, time is not reliable\n"); 173 + dev_dbg(data->dev, 174 + "Crystal oscillation stopped, time is not reliable\n"); 175 175 return -EINVAL; 176 176 } 177 177 178 178 if (FIELD_GET(RX8111_FLAG_VLF_BIT, regval)) { 179 - dev_warn(data->dev, 180 - "Low voltage detected, time is not reliable\n"); 179 + dev_dbg(data->dev, 180 + "Low voltage detected, time is not reliable\n"); 181 181 return -EINVAL; 182 182 } 183 183 ··· 188 188 } 189 189 190 190 if (regval) { 191 - dev_warn(data->dev, "Clock stopped, time is not reliable\n"); 191 + dev_dbg(data->dev, "Clock stopped, time is not reliable\n"); 192 192 return -EINVAL; 193 193 } 194 194