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


Groups > linux.kernel > #1210397 > unrolled thread

[PATCH] clocksource/imx: Fix boot with non-DT systems

Started byGuenter Roeck <linux@roeck-us.net>
First post2015-08-20 12:30 +0200
Last post2015-08-20 17:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] clocksource/imx: Fix boot with non-DT systems Guenter Roeck <linux@roeck-us.net> - 2015-08-20 12:30 +0200
    [tip:timers/urgent] clocksource/imx: Fix boot with non-DT systems tip-bot for Guenter Roeck <tipbot@zytor.com> - 2015-08-20 17:30 +0200

#1210397 — [PATCH] clocksource/imx: Fix boot with non-DT systems

FromGuenter Roeck <linux@roeck-us.net>
Date2015-08-20 12:30 +0200
Subject[PATCH] clocksource/imx: Fix boot with non-DT systems
Message-ID<pZvgB-241-7@gated-at.bofh.it>
Commit 6dd747825b20 ("ARM: imx: move timer resources into a structure")
moved initialization parameters into a data structure, but neglected to set
the irq field in that data structure for non-DT boots. This causes the system
to hang if a non-DT boot is attempted.

Fixes: 6dd747825b20 ("ARM: imx: move timer resources into a structure")
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/clocksource/timer-imx-gpt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 2d59038dec43..86c7eb66bdfb 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -462,6 +462,7 @@ void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
 	BUG_ON(!imxtm->base);
 
 	imxtm->type = type;
+	imxtm->irq = irq;
 
 	_mxc_timer_init(imxtm);
 }
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1210589 — [tip:timers/urgent] clocksource/imx: Fix boot with non-DT systems

Fromtip-bot for Guenter Roeck <tipbot@zytor.com>
Date2015-08-20 17:30 +0200
Subject[tip:timers/urgent] clocksource/imx: Fix boot with non-DT systems
Message-ID<pZzWV-r1-7@gated-at.bofh.it>
In reply to#1210397
Commit-ID:  be3b0f9babc0b29931b75f7048d81f966473ce13
Gitweb:     http://git.kernel.org/tip/be3b0f9babc0b29931b75f7048d81f966473ce13
Author:     Guenter Roeck <linux@roeck-us.net>
AuthorDate: Thu, 20 Aug 2015 03:27:21 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 20 Aug 2015 17:22:56 +0200

clocksource/imx: Fix boot with non-DT systems

Commit 6dd747825b20 ("ARM: imx: move timer resources into a structure")
moved initialization parameters into a data structure, but neglected to set
the irq field in that data structure for non-DT boots. This causes the system
to hang if a non-DT boot is attempted.

Fixes: 6dd747825b20 ("ARM: imx: move timer resources into a structure")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/1440066441-13930-1-git-send-email-linux@roeck-us.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/clocksource/timer-imx-gpt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 2d59038..86c7eb6 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -462,6 +462,7 @@ void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
 	BUG_ON(!imxtm->base);
 
 	imxtm->type = type;
+	imxtm->irq = irq;
 
 	_mxc_timer_init(imxtm);
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web