public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB
@ 2009-12-31  6:24 hvaibhav
  2010-01-06  0:08 ` [APPLIED] " Tony Lindgren
  2010-01-06  0:09 ` Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: hvaibhav @ 2009-12-31  6:24 UTC (permalink / raw)
  To: linux-omap; +Cc: Vaibhav Hiremath

From: Vaibhav Hiremath <hvaibhav@ti.com>

Without this the kernel doesn't boot, it craches in
omap_mux_package_fixup(), since the package_subset becomes NULL.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
---
 arch/arm/mach-omap2/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 10eafa7..606bf04 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -80,6 +80,7 @@ config MACH_OVERO
 config MACH_OMAP3EVM
 	bool "OMAP 3530 EVM board"
 	depends on ARCH_OMAP3 && ARCH_OMAP34XX
+	select OMAP_PACKAGE_CBB
 
 config MACH_OMAP3517EVM
 	bool "OMAP3517/ AM3517 EVM board"
-- 
1.6.2.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [APPLIED] [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB
  2009-12-31  6:24 [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB hvaibhav
@ 2010-01-06  0:08 ` Tony Lindgren
  2010-01-06  0:09 ` Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2010-01-06  0:08 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: omap-fixes

Initial commit ID (Likely to change): a46b02659f8d2edff801441443ba85dec024d0f8

PatchWorks
http://patchwork.kernel.org/patch/70349/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=a46b02659f8d2edff801441443ba85dec024d0f8



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB
  2009-12-31  6:24 [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB hvaibhav
  2010-01-06  0:08 ` [APPLIED] " Tony Lindgren
@ 2010-01-06  0:09 ` Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2010-01-06  0:09 UTC (permalink / raw)
  To: hvaibhav; +Cc: linux-omap

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

* hvaibhav@ti.com <hvaibhav@ti.com> [091230 22:22]:
> From: Vaibhav Hiremath <hvaibhav@ti.com>
> 
> Without this the kernel doesn't boot, it craches in
> omap_mux_package_fixup(), since the package_subset becomes NULL.
> 
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> ---
>  arch/arm/mach-omap2/Kconfig |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
> index 10eafa7..606bf04 100644
> --- a/arch/arm/mach-omap2/Kconfig
> +++ b/arch/arm/mach-omap2/Kconfig
> @@ -80,6 +80,7 @@ config MACH_OVERO
>  config MACH_OMAP3EVM
>  	bool "OMAP 3530 EVM board"
>  	depends on ARCH_OMAP3 && ARCH_OMAP34XX
> +	select OMAP_PACKAGE_CBB
>  
>  config MACH_OMAP3517EVM
>  	bool "OMAP3517/ AM3517 EVM board"

Also applying the following fix so uninitialized packages won't
cause problems.

Regards,

Tony

[-- Attachment #2: mux-init-fix.patch --]
[-- Type: text/x-diff, Size: 1236 bytes --]

>From a6f77c57a213d692ef61db8e7920390779960302 Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Tue, 5 Jan 2010 15:54:58 -0800
Subject: [PATCH] omap: Fix booting if package is uninitialized

Otherwise bringing up new boards can be harder:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.33-rc2-00015-g0bc9c93-dirty #37)
PC is at omap_mux_init+0xa4/0x3d8
LR is at omap_mux_init+0x3c/0x3d8
...

Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index e071b3f..459ef23 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -994,8 +994,10 @@ int __init omap_mux_init(u32 mux_pbase, u32 mux_size,
 	}
 
 #ifdef CONFIG_OMAP_MUX
-	omap_mux_package_fixup(package_subset, superset);
-	omap_mux_package_init_balls(package_balls, superset);
+	if (package_subset)
+		omap_mux_package_fixup(package_subset, superset);
+	if (package_balls)
+		omap_mux_package_init_balls(package_balls, superset);
 	omap_mux_set_cmdline_signals();
 	omap_mux_set_board_signals(board_mux);
 #endif

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-06  0:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31  6:24 [PATCH] OMAP3EVM: Choose OMAP_PACKAGE_CBB hvaibhav
2010-01-06  0:08 ` [APPLIED] " Tony Lindgren
2010-01-06  0:09 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox