Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427399 > unrolled thread

[PATCH v2 17/17] RTC: rtctest: Change no IRQ detection for RTC_IRQP_SET

Started byAndrey Smirnov <andrew.smirnov@gmail.com>
First post2016-06-21 09:30 +0200
Last post2016-06-21 09:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 17/17] RTC: rtctest: Change no IRQ detection for RTC_IRQP_SET Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-21 09:30 +0200

#1427399 — [PATCH v2 17/17] RTC: rtctest: Change no IRQ detection for RTC_IRQP_SET

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2016-06-21 09:30 +0200
Subject[PATCH v2 17/17] RTC: rtctest: Change no IRQ detection for RTC_IRQP_SET
Message-ID<rMoif-2I5-55@gated-at.bofh.it>
A call to ioctl(..., RTC_IRQP_SET, ...) should never result in
ENOTTY. All new style RTC drivers implement it and all of the old style
drivers return EINVAL when they don't support periodic IRQs.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 tools/testing/selftests/timers/rtctest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/timers/rtctest.c b/tools/testing/selftests/timers/rtctest.c
index 97beadf..4230d30 100644
--- a/tools/testing/selftests/timers/rtctest.c
+++ b/tools/testing/selftests/timers/rtctest.c
@@ -218,7 +218,7 @@ test_PIE:
 		retval = ioctl(fd, RTC_IRQP_SET, tmp);
 		if (retval == -1) {
 			/* not all RTCs can change their periodic IRQ rate */
-			if (errno == ENOTTY) {
+			if (errno == EINVAL) {
 				fprintf(stderr,
 					"\n...Periodic IRQ rate is fixed\n");
 				goto done;
-- 
2.5.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web