[Defy Android Development] htto:
Umm, interesting... I've got that issue with the 2.6 kernel on my green lense, since experimenting with debugging options. Does your phone also lock up/reboot after disconnecting it from adb from usb?

The current config diff is:

diff --git a/arch/arm/configs/mb526_cm10.1_defconfig b/arch/arm/configs/mb526_cm10.1_defconfig
index fd907bd..763fa20 100644
--- a/arch/arm/configs/mb526_cm10.1_defconfig
+++ b/arch/arm/configs/mb526_cm10.1_defconfig
@@ -4 +4 @@
-# Fri Feb 7 03:45:19 2014
+# Sat May 3 19:17:07 2014
@@ -98 +98 @@ CONFIG_ANON_INODES=y
-CONFIG_PANIC_TIMEOUT=1
+CONFIG_PANIC_TIMEOUT=30
@@ -138,0 +139 @@ CONFIG_HAVE_CLK=y
+# CONFIG_GCOV_KERNEL is not set
@@ -139,0 +141 @@ CONFIG_SLOW_WORK=y
+# CONFIG_SLOW_WORK_DEBUG is not set
@@ -246,0 +249 @@ CONFIG_OMAP_IOMMU=y
+# CONFIG_OMAP_IOMMU_DEBUG is not set
@@ -248,0 +252 @@ CONFIG_OMAP_32K_TIMER=y
+# CONFIG_OMAP3_DEBOBS is not set
@@ -284 +288 @@ CONFIG_MACH_OMAP_3430_ES3_ARM_ERRATA=y
-# CONFIG_EMU_UART_DEBUG is not set
+CONFIG_EMU_UART_DEBUG=n
@@ -359 +363 @@ CONFIG_HAVE_MEMBLOCK=y
-# CONFIG_DUMP_TASKS_ON_NOPAGE is not set
+CONFIG_DUMP_TASKS_ON_NOPAGE=y
@@ -925 +928,0 @@ CONFIG_VIB_PWM_SWEEP=y
-#CONFIG_WL127X_TEST is not set
@@ -964 +967 @@ CONFIG_NETMUX_DRIVER=m
-# CONFIG_DEBUG_NETMUX is not set
+CONFIG_DEBUG_NETMUX=y
@@ -1099,2 +1102,2 @@ CONFIG_SLHC=y
-# CONFIG_NETCONSOLE is not set
-# CONFIG_NETPOLL is not set
+#CONFIG_NETCONSOLE=y
+#CONFIG_NETPOLL=y
@@ -1117 +1120 @@ CONFIG_INPUT_POLLDEV=y
-CONFIG_INPUT_JOYDEV=y
+CONFIG_INPUT_JOYDEV=n
@@ -1140,2 +1143,2 @@ CONFIG_INPUT_KEYBOARD=y
-CONFIG_INPUT_JOYSTICK=y
-CONFIG_JOYSTICK_ANALOG=y
+CONFIG_INPUT_JOYSTICK=n
+CONFIG_JOYSTICK_ANALOG=n
@@ -1377 +1380 @@ CONFIG_BATTERY_CPCAP=y
-# CONFIG_PM_DBG_DRV is not set
+CONFIG_PM_DBG_DRV=y
@@ -1708 +1711 @@ CONFIG_USB=y
-# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set
+CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
@@ -1873,0 +1877 @@ CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DEBUG_FS=y
@@ -1938 +1942 @@ CONFIG_MMC=y
-CONFIG_MMC_UNSAFE_RESUME=y
+CONFIG_MMC_UNSAFE_RESUME=n
@@ -1954,0 +1959 @@ CONFIG_MMC_BLOCK_DEFERRED_RESUME=y
+# CONFIG_MMC_SDHCI_PLTFM is not set
@@ -2081 +2086,3 @@ CONFIG_ANDROID_LOGGER=y
-# CONFIG_ANDROID_RAM_CONSOLE is not set
+CONFIG_ANDROID_RAM_CONSOLE=y
+CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
+CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT=n
@@ -2125,2 +2132,2 @@ CONFIG_BRIDGE_MEMPOOL_SIZE=0x600000
-# CONFIG_BRIDGE_DEBUG is not set
-CONFIG_BRIDGE_RECOVERY=y
+CONFIG_BRIDGE_DEBUG=y
+CONFIG_BRIDGE_RECOVERY=n
@@ -2131 +2138 @@ CONFIG_BRIDGE_RECOVERY=y
-# CONFIG_BRIDGE_CHECK_ALIGN_128 is not set
+CONFIG_BRIDGE_CHECK_ALIGN_128=y
@@ -2153,0 +2161 @@ CONFIG_JBD=y
+# CONFIG_JBD_DEBUG is not set
@@ -2154,0 +2163 @@ CONFIG_JBD2=y
+# CONFIG_JBD2_DEBUG is not set
@@ -2194 +2203 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
-CONFIG_NTFS_FS=y
+# CONFIG_NTFS_FS is not set
@@ -2196 +2205 @@ CONFIG_NTFS_FS=y
-CONFIG_NTFS_RW=y
+# CONFIG_NTFS_RW is not set
@@ -2330,3 +2339,3 @@ CONFIG_MAGIC_SYSRQ=y
-# CONFIG_STRIP_ASM_SYMS is not set
-# CONFIG_UNUSED_SYMBOLS is not set
-# CONFIG_DEBUG_FS is not set
+CONFIG_STRIP_ASM_SYMS=n
+CONFIG_UNUSED_SYMBOLS=n
+CONFIG_DEBUG_FS=y
@@ -2337,2 +2346,2 @@ CONFIG_DETECT_SOFTLOCKUP=y
-# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
-CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1
@@ -2340 +2349 @@ CONFIG_DETECT_HUNG_TASK=y
-# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
+CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y
@@ -2342 +2351 @@ CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
-CONFIG_SCHED_DEBUG=y
+CONFIG_SCHED_DEBUG=n
@@ -2346,5 +2355,5 @@ CONFIG_SCHED_DEBUG=y
-# CONFIG_DEBUG_KMEMLEAK is not set
-# CONFIG_DEBUG_PREEMPT is not set
-# CONFIG_DEBUG_RT_MUTEXES is not set
-# CONFIG_RT_MUTEX_TESTER is not set
-# CONFIG_DEBUG_SPINLOCK is not set
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_PREEMPT=y
+CONFIG_DEBUG_RT_MUTEXES=y
+CONFIG_RT_MUTEX_TESTER=y
+CONFIG_DEBUG_SPINLOCK=y
@@ -2352,3 +2361,3 @@ CONFIG_DEBUG_MUTEXES=y
-# CONFIG_DEBUG_PSRWLOCK is not set
-# CONFIG_DEBUG_LOCK_ALLOC is not set
-# CONFIG_PROVE_LOCKING is not set
+CONFIG_DEBUG_PSRWLOCK=y
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_PROVE_LOCKING=y
@@ -2356 +2365 @@ CONFIG_DEBUG_MUTEXES=y
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
@@ -2360 +2369 @@ CONFIG_STACKTRACE=y
-# CONFIG_DEBUG_BUGVERBOSE is not set
+CONFIG_DEBUG_BUGVERBOSE=y
@@ -2377 +2386 @@ CONFIG_DEBUG_VM=y
-# CONFIG_PAGE_POISONING is not set
+CONFIG_PAGE_POISONING=y
@@ -2395,0 +2405 @@ CONFIG_BRANCH_PROFILE_NONE=y
+# CONFIG_DYNAMIC_DEBUG is not set
@@ -2401 +2411 @@ CONFIG_ARM_UNWIND=y
-# CONFIG_DEBUG_USER is not set
+CONFIG_DEBUG_USER=y
@@ -2544,0 +2555,3 @@ CONFIG_NLATTR=y
+
+CONFIG_ARCH_WANT_FRAME_POINTERS=y
+CONFIG_FRAME_POINTER=y

Still trying to find the culprit, though...

Edit: Ok, seems to be CONFIG_DEBUG_SPINLOCK_SLEEP causing the screen-on fail on 2.6. Probably because of

#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
if (!oops_in_progress)
BUG();
#endif

In kernel/sched.c:__schedule_bug(). That fragment isn't there in later kernels though.