[oe-commits] org.oe.dev linux-2.6.24: fix sa1100-rtc
woglinde2 commit
oe at amethyst.openembedded.net
Mon Mar 17 22:10:21 UTC 2008
linux-2.6.24: fix sa1100-rtc
* hopefully fix the rtc1hz and rtcalarm register bug
* added patch under linux-2.6.24/simpad/
* bump pr
* thanks MrData for the patch
Author: woglinde2 at openembedded.org
Branch: org.openembedded.dev
Revision: bed7cc7b23704d8f63b21365aa0538f4fdca1820
ViewMTN: http://monotone.openembedded.org/revision/info/bed7cc7b23704d8f63b21365aa0538f4fdca1820
Files:
1
packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch
packages/linux/linux_2.6.24.bb
Diffs:
#
# mt diff -r9263c7abd0834d6d0e579cb7a83af9da4c50de6a -rbed7cc7b23704d8f63b21365aa0538f4fdca1820
#
#
#
# add_file "packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch"
# content [cb7ada70375fee5379806c648aaf22a17737b16d]
#
# patch "packages/linux/linux_2.6.24.bb"
# from [75515afe0329bad68e312c5d8a80a92c8d9ee3e9]
# to [0b77562c24e62555c0952e5c6a0ebce85aaa1a43]
#
============================================================
--- packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch cb7ada70375fee5379806c648aaf22a17737b16d
+++ packages/linux/linux-2.6.24/simpad/linux-2.6.24-SIMpad-rtc-sa1100.patch cb7ada70375fee5379806c648aaf22a17737b16d
@@ -0,0 +1,28 @@
+diff -Nur linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c linux-2.6.24/drivers/rtc/rtc-sa1100.c
+--- linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c 2008-01-24 23:58:37.000000000 +0100
++++ linux-2.6.24/drivers/rtc/rtc-sa1100.c 2008-03-17 20:52:41.000000000 +0100
+@@ -15,6 +15,10 @@
+ * Converted to the RTC subsystem and Driver Model
+ * by Richard Purdie <rpurdie at rpsys.net>
+ *
++ * 2008/03/17 mrdata:
++ * disable IRQ RTC1Hz and RTCAlrm before request_irq
++ * in sa1100_rtc_open()
++ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+@@ -154,7 +158,12 @@
+ static int sa1100_rtc_open(struct device *dev)
+ {
+ int ret;
+-
++
++ spin_lock_irq(&sa1100_rtc_lock);
++ RTSR &= ~RTSR_HZE;
++ RTSR &= ~RTSR_ALE;
++ spin_unlock_irq(&sa1100_rtc_lock);
++
+ ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, IRQF_DISABLED,
+ "rtc 1Hz", dev);
+ if (ret) {
============================================================
--- packages/linux/linux_2.6.24.bb 75515afe0329bad68e312c5d8a80a92c8d9ee3e9
+++ packages/linux/linux_2.6.24.bb 0b77562c24e62555c0952e5c6a0ebce85aaa1a43
@@ -11,7 +11,7 @@ DEPENDS_append_mpc8313e-rdb = " dtc-nati
DEPENDS_append_mpc8313e-rdb = " dtc-native"
-PR = "r8"
+PR = "r9"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2 \
http://kamikaze.waninkoko.info/patches/2.6.24/kamikaze1/broken-out/squashfs-lzma-2.6.24.patch;patch=1 \
@@ -33,6 +33,7 @@ SRC_URI_append_simpad = "\
file://linux-2.6.24-SIMpad-ucb1x00-ts-supend-and-accuracy.patch;patch=1 \
file://linux-2.6.24-SIMpad-hostap_cs-shared-irq.patch;patch=1 \
file://linux-2.6.24-SIMpad-orinoco_cs-shared-irq.patch;patch=1 \
+ file://linux-2.6.24-SIMpad-rtc-sa1100.patch;patch=1 \
file://collie-kexec.patch;patch=1 \
file://export_atags-r2.patch;patch=1 \
"
More information about the Openembedded-commits
mailing list