Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1579797ybj; Fri, 8 May 2020 04:52:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKWeqysjwta8bWFIP7RlhSLXuOODPuGXu5+BvjtDF7ahWupp4j6f6I0/w+GIQpsk/SyANJa X-Received: by 2002:a17:906:1e47:: with SMTP id i7mr1571554ejj.61.1588938748751; Fri, 08 May 2020 04:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588938748; cv=none; d=google.com; s=arc-20160816; b=JhWZ1SpqewzBzvg9ytaiOMKs06xOxQHLkYu+U4NzudRNRZco7hUlwmK3+pLTn7Tkle wG/EEKNyU9K/ykI3XwRb96LIHl0coaofF4yHgirznovgV0Kwj2rEmGAeHFPKy3ZKjjAe pCuIN40SXAOqSgNgI+sJxz7xtQaTu+B+Bt16Jk4fSPhGuEGgyv+nra2+ML5kArEWw+YL HEd2CsjfKcu0Xsig23jenpfq9G8AIBVWwHN1BFgcC20KqoqYgn2MYuREi5rLiYh6U1vB 1NgECOO7WWY/FWkWntcAAD5fDqBEgNAMDGwOgbXIo22IW7doDlp2bYcctIg2pqKimgY0 zpzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=QQGFwDnzFBU7zrMawA4/5iKrSxXLexZTRc8l7VKqb2w=; b=cAVguiBcEhYZUcYZ3UC1NHZW4Fx4C6NFSxdMvxmNJ8f9vou1bP28sQnnYBcu+hRqfO yAmbRlrr1MioZC+hKFFF5TvUD1U11m+tTb2aaxV+RGZkoPt6qdJXJQOHCq2D5c0/Srz3 zqp6SbrJPXArHA1KTIOBP5giVINqG/K/ASL3VzC6+z/ikj2HYnkgH1dkwLtVyKUxy6Xw AdDok74pNeJeeik7CufzZfQKR/LwQiRl8JQ3sS2A3iCFakIrJq3CYJAONdjp9kNhKnd7 9btm+zQDA+WgqJDGNfwdvfZah0Yduyu3YgP7yuxYQF4vqjy0jCrBaeD0gEkwfjAJpeu7 7x4w== 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 ch12si853155ejb.36.2020.05.08.04.52.03; Fri, 08 May 2020 04:52:28 -0700 (PDT) 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 S1726948AbgEHLtw (ORCPT + 99 others); Fri, 8 May 2020 07:49:52 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:52367 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbgEHLtw (ORCPT ); Fri, 8 May 2020 07:49:52 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 92B6220000C; Fri, 8 May 2020 11:49:48 +0000 (UTC) Date: Fri, 8 May 2020 13:49:47 +0200 From: Alexandre Belloni To: Biwen Li Cc: leoyang.li@nxp.com, robh+dt@kernel.org, mpe@ellerman.id.au, benh@kernel.crashing.org, a.zummo@towertech.it, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Biwen Li Subject: Re: [PATCH 1/3] rtc: ds1374: add uie_unsupported property to drop warning Message-ID: <20200508114947.GK34497@piout.net> References: <20200508054925.48237-1-biwen.li@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508054925.48237-1-biwen.li@oss.nxp.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08/05/2020 13:49:23+0800, Biwen Li wrote: > From: Biwen Li > > Add uie_unsupported property to drop warning as follows: > - $ hwclock.util-linux > hwclock.util-liux: select() /dev/rtc0 > to wait for clock tick timed out > > My case: > - RTC ds1374's INT pin is connected to VCC on T4240RDB, > then the RTC cannot inform cpu about the alarm > interrupt > > Signed-off-by: Biwen Li > --- > drivers/rtc/rtc-ds1374.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c > index 9c51a12cf70f..e530e887a17e 100644 > --- a/drivers/rtc/rtc-ds1374.c > +++ b/drivers/rtc/rtc-ds1374.c > @@ -651,6 +651,10 @@ static int ds1374_probe(struct i2c_client *client, > if (ret) > return ret; > > + if (of_property_read_bool(client->dev.of_node, > + "uie_unsupported")) > + ds1374->rtc->uie_unsupported = true; > + This is not how this is supposed to work, either the RTC support uie or don't, it is not board dependent and certainly doesn't require an (undocumented) DT property. > #ifdef CONFIG_RTC_DRV_DS1374_WDT > save_client = client; > ret = misc_register(&ds1374_miscdev); > -- > 2.17.1 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com