Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp844430lqb; Wed, 17 Apr 2024 12:22:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvXfXcTrY9pgn/NP/eBZ1cbChWDavfT1X7I4T4Yn6NUuH5bwObvldt4ggGtT9iubioV7a1uoQYCbkx2u/YOfIFHUdN0UmGdKy4HxFBXg== X-Google-Smtp-Source: AGHT+IFk7SeknqzTTYGT4z3PTT245menw1HkBooxLDVNOArkX860G/ziYiq3+2kZtYBlfMVS/teV X-Received: by 2002:a17:902:ecc6:b0:1e8:4063:6dfe with SMTP id a6-20020a170902ecc600b001e840636dfemr601429plh.10.1713381779304; Wed, 17 Apr 2024 12:22:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713381779; cv=pass; d=google.com; s=arc-20160816; b=TIRwFuIJPvHYWkRZ9ZDuSp8bKzUiF7TVjQ8b5OZRRtBZWN/KPY0Kdy6sQt3rWOSK15 Blvv9sLuhf+3XkMWl0qBql5lYUjpS+WH/8EgjYZGtJQuDg7IAbVtfOJLpyx8TpaBnHYn xeqXxHQuvd0BLrkKwwoWniafDF35DZl3Za0j7C41q4/j2STxGIHlpr6ml8kvi6QzVcsl K3y4OjhlsLzeBw3br42Zu6ut5SOICEXyBIiQsCBR9+zGff+7k4ZSdVq52RtpIeD/kT8g lKl1KxMTbS4LTucy7+kkWzJncCDy3/ghgbnuAdT5VDQLqJFT4BQWoHIfCP7jcu2HTDgK X6ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qnegySRP2t/rhTa6N++GcpoVh6UOOmzaniiw8ruo3KU=; fh=WU17kdw4RXVKHtu1k8RSL1WNEyq/FnTUIEZGTHaYM9M=; b=HKdCkmLaZBUU/KDicnNUvV4GBb36N/TUo92Opl1TtrCE5pfzWODl9keDRTgzUZi8oS /uktABpmU33pOG7AZRGKflGuUhNQwjWwz3CF/dLCUCTrHT9lKu5fVJVlddzmRaky9PRF b1HudGmV2/b6LMENxxVRsihTWemojEDjKAqMjQ4murJ6bGjw+LNO3X/QgwhmzrKlsj2Z r1PgKU5bEgVvJxZyMzZH/h7QWdxdFIRiPEIV6QUSPtlAiau7Kz9kYDstj+FlANV2gFG5 /Ky0e3fGcXsKe3e0i/+gpgGif7XpFECfP11jtWxWtsuR+fEyAZCeGCOiifRoAe9SZQtI csJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jiz9GMMY; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-149114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id iy7-20020a170903130700b001e67732a182si5412290plb.637.2024.04.17.12.22.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 12:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jiz9GMMY; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-149114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E7E72B22243 for ; Wed, 17 Apr 2024 19:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6F5D2554B; Wed, 17 Apr 2024 19:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jiz9GMMY" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B764182AF; Wed, 17 Apr 2024 19:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713381593; cv=none; b=Hgm0C2B/sQfybCVyYzCkuc63xPiiGAAun3KaWanBC0RhBFDI+g1GGEOaBguQ601sFuUCpLPJl53urpdKPOODm/QJ0uAkvvEbksxvx22tuq1gQ6jvj0LNIE22rg5kKzIL8Pp6tUuQDIgsdCh71RVmLf4kNpItiDHVo1Ed804sVHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713381593; c=relaxed/simple; bh=AeUpsW2kfdTLP8cytZxJnozfmR5aDxkpG7wLSKBxCCM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=auHbSDcWdToOInAa/O2kGE0zEet7dyzU4g242xe/HehWzPVJA79NzX3/P6Zsf6zTqKoW1p450i1iJApJhxzyaJnk7IeezHSxfJTXBaI8EnN/Be15DpkYbs2VHklPJ8TZUIoqqMT2Ynd7Uk3RYJ7bgWC66Gbl3DnYlp4Au2+CAJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=jiz9GMMY; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 090FA240006; Wed, 17 Apr 2024 19:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713381588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qnegySRP2t/rhTa6N++GcpoVh6UOOmzaniiw8ruo3KU=; b=jiz9GMMYydwERXWFLzxGKwFo1BrJj+wOXaf5lzHHANvPOPALLlLe5cDtPEfAoiioIsJR9Q bjVdwExgBRaCHztfdrra3HSHixE4BG5bEJxjf15yar53iiLOPiODV3eQYaad09rt8bKcki QvvSmHJrKj0TbGR2eYXtmPlHrrgJVs10ufXVJfFnHDXYs+biSLWBJxesJuoVHHPnMOXZFQ AeNagQGR4sHwjyNnE47+P9X0t8C62uqO5OvPMETHB/JnAI9MOTkfIo3t39hUxDbKWlxb6I uMrgtlAr7umZ0W4DM01wj2x2JiyxOsmyEkELQVXY7MD42UeJqXr6GDgfW5xlJg== From: alexandre.belloni@bootlin.com To: Alexandre Belloni Cc: Waqar Hameed , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] rtc: rx8111: demote warnings to debug level Date: Wed, 17 Apr 2024 21:19:35 +0200 Message-ID: <20240417191937.33790-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: alexandre.belloni@bootlin.com From: Alexandre Belloni 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. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rx8111.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-rx8111.c b/drivers/rtc/rtc-rx8111.c index 62d2352de102..4a35bd921b33 100644 --- a/drivers/rtc/rtc-rx8111.c +++ b/drivers/rtc/rtc-rx8111.c @@ -170,14 +170,14 @@ static int rx8111_read_time(struct device *dev, struct rtc_time *tm) } if (FIELD_GET(RX8111_FLAG_XST_BIT, regval)) { - dev_warn(data->dev, - "Crystal oscillation stopped, time is not reliable\n"); + dev_dbg(data->dev, + "Crystal oscillation stopped, time is not reliable\n"); return -EINVAL; } if (FIELD_GET(RX8111_FLAG_VLF_BIT, regval)) { - dev_warn(data->dev, - "Low voltage detected, time is not reliable\n"); + dev_dbg(data->dev, + "Low voltage detected, time is not reliable\n"); return -EINVAL; } @@ -188,7 +188,7 @@ static int rx8111_read_time(struct device *dev, struct rtc_time *tm) } if (regval) { - dev_warn(data->dev, "Clock stopped, time is not reliable\n"); + dev_dbg(data->dev, "Clock stopped, time is not reliable\n"); return -EINVAL; } -- 2.44.0