[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240524013807.154338-1-jjang@nvidia.com>
Date: Thu, 23 May 2024 18:38:05 -0700
From: Joseph Jang <jjang@...dia.com>
To: <shuah@...nel.org>, <alexandre.belloni@...tlin.com>, <avagin@...gle.com>,
<jjang@...dia.com>, <amir73il@...il.com>, <brauner@...nel.org>,
<mochs@...dia.com>, <kobak@...dia.com>, <linux-kernel@...r.kernel.org>,
<linux-rtc@...r.kernel.org>, <linux-kselftest@...r.kernel.org>
CC: <linux-tegra@...r.kernel.org>
Subject: [PATCH 0/2] selftest: rtc: Add rtc feature detection and rtc file check
1. In order to make rtctest more explicit and robust, we propose to use
RTC_PARAM_GET ioctl interface to check rtc alarm feature state before
running alarm related tests.
2. The rtctest requires the read permission on /dev/rtc0. The rtctest will
be skipped if the /dev/rtc0 is not readable.
Joseph Jang (2):
selftest: rtc: Add to check rtc alarm status for alarm related test
selftest: rtc: Check if could access /dev/rtc0 before testing
tools/testing/selftests/rtc/Makefile | 2 +-
tools/testing/selftests/rtc/rtctest.c | 71 ++++++++++++++++++++++++++-
2 files changed, 71 insertions(+), 2 deletions(-)
--
2.34.1
Powered by blists - more mailing lists