Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp459026pxb; Wed, 27 Jan 2021 11:58:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJym737rUOJvfdMFYki4OmOgLucslOZzlek7OLCfXQoorA5s7nW7jibD09HWPa7TWky/PoGZ X-Received: by 2002:aa7:cd62:: with SMTP id ca2mr10190092edb.81.1611777536892; Wed, 27 Jan 2021 11:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611777536; cv=none; d=google.com; s=arc-20160816; b=sjlyQb3UANZuXlBW3uKxRNfobIlywR58tLs9ymYJBHXizLZGTWtEzsnbyJJAzp8nuS 7BulaQiwkz1LV1/Lh2Q7uimvh4ODSaFJ1zTPm/hFfLOh46haC8vUXP2O9olUWmGhjlWO LROQ3o5E8dPe38cJAfnIubTQADTzLlPAWkfu1SzUeGKk1l8QGpMu2NJVC0fhs+wEtU+K jElpFXkwpVqbWCBAi1ai0H0m46Wr5GCSy612N3Dq1R7vw4BoZJ8yHuK2F73SSB7S6VKG vuidt9b4XiKCMd/9G7llNLdDq/BKNXI6McUP1n+oL17Bqw0rTPv595XZ+B5dkcndCYcI GMfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=L1Tfv3x/w9MrYYjEw7N4yPT1Rus5a+rbEjmde+xvFPc=; b=LQ2RUeu/IOSLv25f0EMdEzI6BnAPu87D76CRUDWnF2d/gfvuWsnRgquLcGv5WTUG2Q SQOVm71TV3NRNR0jacj8Wj09mqOEtuKX1EHjobvdrXmeO84coSGuRVbq4I4gEMY2vrdT CGcba6Qulvteu8ysyPbko1jitsEeEGNiH2ww6K1v+DARpIf30OEGZu8BHuitNut66aMB 9N0hx/UTMQGlOX8QkcbjJBs47Gb/Tokl3+4nrwRvDU9GYZgEuYTnIReJ5qncdWisiTJE AAxbMkwwod+zDQZWm6YNK5Ltwxayiw4oYYpGn0Il2vNNXgBqXhyH4VyCc3BvbDmsI7WQ 2DOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si1413125edr.611.2021.01.27.11.58.31; Wed, 27 Jan 2021 11:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236807AbhA0Dmi (ORCPT + 99 others); Tue, 26 Jan 2021 22:42:38 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47651 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbhAZWP1 (ORCPT ); Tue, 26 Jan 2021 17:15:27 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 733E620003; Tue, 26 Jan 2021 22:14:37 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] rtc: rv3028: remove useless warning messages Date: Tue, 26 Jan 2021 23:14:34 +0100 Message-Id: <20210126221435.2152339-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210126221435.2152339-1-alexandre.belloni@bootlin.com> References: <20210126221435.2152339-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove voltage low messages as userspace has a proper way to get the information and react on it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv3028.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c index 4f8f6092097a..2ee2afa3fa66 100644 --- a/drivers/rtc/rtc-rv3028.c +++ b/drivers/rtc/rtc-rv3028.c @@ -265,9 +265,6 @@ static irqreturn_t rv3028_handle_irq(int irq, void *dev_id) return IRQ_NONE; } - if (status & RV3028_STATUS_PORF) - dev_warn(&rv3028->rtc->dev, "Voltage low, data loss detected.\n"); - status &= ~RV3028_STATUS_PORF; if (status & RV3028_STATUS_TF) { @@ -313,10 +310,8 @@ static int rv3028_get_time(struct device *dev, struct rtc_time *tm) if (ret < 0) return ret; - if (status & RV3028_STATUS_PORF) { - dev_warn(dev, "Voltage low, data is invalid.\n"); + if (status & RV3028_STATUS_PORF) return -EINVAL; - } ret = regmap_bulk_read(rv3028->regmap, RV3028_SEC, date, sizeof(date)); if (ret) @@ -828,9 +823,6 @@ static int rv3028_probe(struct i2c_client *client) if (ret < 0) return ret; - if (status & RV3028_STATUS_PORF) - dev_warn(&client->dev, "Voltage low, data loss detected.\n"); - if (status & RV3028_STATUS_AF) dev_warn(&client->dev, "An alarm may have been missed.\n"); -- 2.29.2