[#3837] rtc ioctl RTC_IRQP_SET error
Submitted By: Mingquan Pan
Open Date
2008-01-17 00:54:27 Close Date
2008-01-17 20:01:25
Priority:
Medium Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
Oct 07
App binary format:
N/A
Summary: rtc ioctl RTC_IRQP_SET error
Details:
rtc ioctl RTC_IRQP_SET error for Unknown error 515.
cd /bin^M
root:/bin> ./rtc_test^M
====== RTC Test ====^M
0. open and release^M
opened '/dev/rtc0': fd = 3^M
1. ioctl RTC_UIE_ON^M
2. RTC read 5 times^M
PHY: 0:01 - Link is Up - 100/Full^M
RTC read 1^M
RTC read 2^M
RTC read 3^M
RTC read 4^M
RTC read 5^M
3. ioctl RTC_UIE_OFF^M
4. Get RTC Time^M
Current RTC date/time is 1-1-70, 11:48:22^M
5. Set RTC Time^M
Set Current RTC date/time to 31-5-104, 02:30:00^M
Get RTC time^M
Current RTC date/time is 31-5-104, 02:30:01^M
6. Set alarm Time^M
7. Get alarm Time^M
Alarm time now set to 02:30:51^M
Waiting 50 seconds for alarm...^M
Okay. Alarm rang.^M
Current RTC date/time is 31-5-104, 02:30:51^M
8. ioctl RTC_AIE_OFF^M
8.5 test sleep 10^M
Current RTC date/time is 31-5-104, 02:31:01^M
9. ioctl RTC_PIE_ON^M
Current RTC date/time is 31-5-104, 02:31:02^M
10. ioctl RTC_IRQP_SET^M
ioctl RTC_IRQP_SET error: Unknown error 515^M
Current RTC date/time is 31-5-104, 02:31:04^M
11. ioctl RTC_PIE_OFF^M
Current RTC date/time is 31-5-104, 02:31:05^M
RTC Tests done !!^M
Follow-ups
--- Mike Frysinger 2008-01-17 03:37:34
this is expected behavior as the Blackfin RTC does not support changing of its
frequency, so trying to use IRQP_SET will fail
--- Mingquan Pan 2008-01-17 04:50:26
How this case didn't fail before if this feature is not supported?
--- Mike Frysinger 2008-01-17 04:59:20
it was incorrectly implemented before and the feature was claimed to be
supported when in reality it was not
--- Mike Frysinger 2008-01-17 05:19:54
to be clear, it is the Blackfin RTC hardware itself which is not able to support
changing of frequencies as defined by the Linux api. the RTC hardware can go
from a frequency of 1HZ to 1/2^32HZ when the Linux api needs it to scale in the
other direction: 1HZ to 2^32HZ.
--- Mingquan Pan 2008-01-17 22:02:48
All right.Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found