linux-3.0: rtc-twl: Updated Sakoman patches with newer versions
PATCH 1/2 linux-3.0: rtc-twl: Updated Sakoman patches with newer versions
This fixes all IRQ kernel panics that were showing up on my BeagleBoard-xM
* Refreshed patch that switched to using threaded IRQ (0009-rtc-twl-Switch-to-using-threaded-irq.patch)
* Added patch to fix registration vs init order (0010-fix-registration-vs-init-order.patch)
* Modified batter recharge patch to be applyable with the other changes (0014-rtc-twl-add-support-for-backup-battery-recharge.patch)
Summary of patches added/updated:
[PATCH 1/2] rtc: twl: Use threaded IRQ, remove IRQ enable in interrupt handler [PATCH 2/2] rtc: twl: Fix registration vs. init order
Relevant Threads:
http://www.spinics.net/lists/linux-omap/msg54794.html
http://www.mail-archive.com/[email protected]/msg53176.html
--- ...0009-rtc-twl-Switch-to-using-threaded-irq.patch | 62 ++++++++-- .../0010-fix-registration-vs-init-order.patch | 128 ++++++++++++++++++++ ...l-add-support-for-backup-battery-recharge.patch | 55 --------- ...l-add-support-for-backup-battery-recharge.patch | 55 +++++++++ recipes-kernel/linux/linux_3.0.bb | 5 +- 5 files changed, 235 insertions(+), 70 deletions(-) create mode 100644 recipes-kernel/linux/linux-3.0/sakoman/0010-fix-registration-vs-init-order.patch delete mode 100644 recipes-kernel/linux/linux-3.0/sakoman/0010-rtc-twl-add-support-for-backup-battery-recharge.patch create mode 100644 recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch
recipes-kernel/linux/linux-3.0/sakoman/0009-rtc-twl-Switch-to-using-threaded-irq.patch +49 -13
@@ -1,25 +1,61 @@ -From 61f6890ed80c09e40841221d238410a8d9ebace6 Mon Sep 17 00:00:00 2001 -From: Ilkka Koskinen <[email protected]> -Date: Wed, 16 Mar 2011 16:07:14 +0000 -Subject: [PATCH 09/13] rtc-twl: Switch to using threaded irq +From patchwork Wed Jul 27 07:07:20 2011 +Subject: [1/2] rtc: twl: Use threaded IRQ, + remove IRQ enable in interrupt handler +Date: Wed, 27 Jul 2011 07:07:20 -0000 +From: Todd Poynor <[email protected]> +X-Patchwork-Id: 1010862 +Message-Id: <[email protected]> +To: Alessandro Zummo <[email protected]> +Cc: [email protected], [email protected], + [email protected], Todd Poynor <[email protected]> + +IRQs disabled on entry to twl_rtc_interrupt is not a consequence +of LOCKDEP; both twl6030 and twl4030 explicitly disable IRQs +before calling the module IRQ handlers. + +The ISR should not be enabling IRQs; use a threaded IRQ handler +instead. + +Also fixes warnings: + + WARNING: at kernel/irq/handle.c:130 handle_irq_event_percpu+nnn + irq nnn handler twl_rtc_interrupt+nnn enabled interrupts + +Signed-off-by: Todd Poynor <[email protected]> --- - drivers/rtc/rtc-twl.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) +drivers/rtc/rtc-twl.c | 14 +++----------- + 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c -index f9a2799..f3e5045 100644 +index 9a81f77..ece41b9 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c -@@ -462,7 +462,7 @@ static int __devinit twl_rtc_probe(struct platform_device *pdev) +@@ -362,14 +362,6 @@ static irqreturn_t twl_rtc_interrupt(int irq, void *rtc) + int res; + u8 rd_reg; + +-#ifdef CONFIG_LOCKDEP +- /* WORKAROUND for lockdep forcing IRQF_DISABLED on us, which +- * we don't want and can't tolerate. Although it might be +- * friendlier not to borrow this thread context... +- */ +- local_irq_enable(); +-#endif +- + res = twl_rtc_read_u8(&rd_reg, REG_RTC_STATUS_REG); + if (res) + goto out; +@@ -462,9 +454,9 @@ static int __devinit twl_rtc_probe(struct platform_device *pdev) if (ret < 0) goto out1; - ret = request_irq(irq, twl_rtc_interrupt, +- IRQF_TRIGGER_RISING, +- dev_name(&rtc->dev), rtc); + ret = request_threaded_irq(irq, NULL, twl_rtc_interrupt, - IRQF_TRIGGER_RISING, - dev_name(&rtc->dev), rtc); ++ IRQF_TRIGGER_RISING, ++ dev_name(&rtc->dev), rtc); if (ret < 0) { --- -1.6.6.1 - + dev_err(&pdev->dev, "IRQ is not free.\n"); + goto out1;
recipes-kernel/linux/linux-3.0/sakoman/0010-fix-registration-vs-init-order.patch new file +128 -0
128 lines not on this page · raw message
recipes-kernel/linux/linux-3.0/sakoman/0010-rtc-twl-add-support-for-backup-battery-recharge.patch deleted +0 -55
55 lines not on this page · raw message
recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch new file +55 -0
55 lines not on this page · raw message
recipes-kernel/linux/linux_3.0.bb +3 -2
@@ -9,7 +9,7 @@ COMPATIBLE_MACHINE = "(beagleboard)" SRCREV_pn-${PN} = "94ed5b4788a7cdbe68bc7cb8516972cbebdc8274" # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc -MACHINE_KERNEL_PR_append = "k" +MACHINE_KERNEL_PR_append = "m" FILESPATHPKG_prepend = "linux-3.0:"
@@ -208,10 +208,11 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-3.0.y.git file://sakoman/0007-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch \ file://sakoman/0008-Revert-omap2_mcspi-Flush-posted-writes.patch \ file://sakoman/0009-rtc-twl-Switch-to-using-threaded-irq.patch \ - file://sakoman/0010-rtc-twl-add-support-for-backup-battery-recharge.patch \ + file://sakoman/0010-fix-registration-vs-init-order.patch \ file://sakoman/0011-soc-codecs-Enable-audio-capture-by-default-for-twl40.patch \ file://sakoman/0012-soc-codecs-twl4030-Turn-on-mic-bias-by-default.patch \ file://sakoman/0013-omap-mmc-twl4030-move-clock-input-selection-prior-to.patch \ + file://sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch \ \ file://sgx/0001-ARM-L2-Add-and-export-outer_clean_all.patch \ file://defconfig"
Signature · 1 line
1.7.0.4
PATCH 2/2 linux-3.0: Remove the 1GHz support hack
This makes the errors possibly related to a corruption of the memory such as "Undefined Instruction" and "Unable to handle kernel paging request at virtual address" go away. I have verified this multiple times
--- recipes-kernel/linux/linux_3.0.bb | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux_3.0.bb +1 -2
@@ -9,7 +9,7 @@ COMPATIBLE_MACHINE = "(beagleboard)" SRCREV_pn-${PN} = "94ed5b4788a7cdbe68bc7cb8516972cbebdc8274" # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc -MACHINE_KERNEL_PR_append = "m" +MACHINE_KERNEL_PR_append = "n" FILESPATHPKG_prepend = "linux-3.0:"
@@ -193,7 +193,6 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-3.0.y.git file://beagle/0001-OMAP3-beagle-add-support-for-beagleboard-xM-revision.patch \ file://beagle/0002-UNFINISHED-OMAP3-beagle-add-support-for-expansionboa.patch \ file://beagle/0003-HACK-OMAP3-beagle-switch-to-GPTIMER1.patch \ - file://beagle/0004-OMAP3-beagle-HACK-add-in-1GHz-OPP.patch \ file://beagle/0005-omap3-Add-basic-support-for-720MHz-part.patch \ file://beagle/0006-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch \ file://madc/0001-Enabling-Hwmon-driver-for-twl4030-madc.patch \
Signature · 1 line
1.7.0.4