From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9428C3A59D for ; Thu, 22 Aug 2019 07:44:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B68FD206BB for ; Thu, 22 Aug 2019 07:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbfHVHoM (ORCPT ); Thu, 22 Aug 2019 03:44:12 -0400 Received: from mga06.intel.com ([134.134.136.31]:14230 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727875AbfHVHoM (ORCPT ); Thu, 22 Aug 2019 03:44:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2019 00:44:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,415,1559545200"; d="scan'208";a="183791042" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga006.jf.intel.com with ESMTP; 22 Aug 2019 00:44:06 -0700 From: Rahul Tanwar To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, tony.luck@intel.com, x86@kernel.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, alan@linux.intel.com, linux-kernel@vger.kernel.org, qi-ming.wu@intel.com, cheol.yong.kim@intel.com, rahul.tanwar@intel.com, Rahul Tanwar Subject: [PATCH v1 0/2] x86/rtc: Add option to skip using RTC Date: Thu, 22 Aug 2019 15:44:02 +0800 Message-Id: X-Mailer: git-send-email 2.11.0 Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org Platform init ops get_wallclock()/set_wallclock() are by default setup such that they use MC146818A RTC/CMOS device to set & read time. However, some products might not support RTC. One such example is Intel Atom based Lightning Mountain network processor SOC. Patch 1: Use status standard property of motorola,mc146818 compatible DT node to determine if RTC is supported. Skip read/write from RTC device only when this node is present and status is disabled. For non DT machines, do not change anything, proceed same as before. For DT machines, if this node is not present, proceed same as before. For DT machines, if this node is present but newly introduced status property is not defined in DTS, proceed same as before. For DT machines, if this node is present and status property indicates "disabled", then skip read/write from RTC/CMOS device. If status property indicates "okay", proceed same as before. Patch 2: Update dt bindings document to add status property. These patches are baselined upon Linux 5.3-rc5 at below Git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core Rahul Tanwar (2): x86/rtc: Add option to skip using RTC dt-bindings: rtc: Add optional status property Documentation/devicetree/bindings/rtc/rtc-cmos.txt | 4 ++++ arch/x86/kernel/rtc.c | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) -- 2.11.0