[Defy Q&A, Help & Troubleshooting] mazsa1:
Hi!

I'm using the following rom on my Defy+: cm-7-20130710-UNOFFICIAL-FINAL-jordan_plus-signed (CM7.2 Maniac)

I love it, but there is one big problem: the phone always crashes after a few days (2-3) and I need to take out the battery in order to restart it.

Today I noticed something before it crashed: at work I pulled out the phone to check the time and noticed that the wifi icon in the statusbar came on, but it stayed grey and didn't go blue (connected). I couldn't investigate the issue at the time, but after a few hours when I checked my phone again, it was dead and I had to take out the battery to turn it on again.

Below is the last part of kmsg, I also attached the full log.

I also checked the logs in the past after crashes, and the recurring thing is that it always conatins TIWLAN downloading a firmware in the last part. So I suspect some kind of wifi problem, but could it also cause the phone crash? Or it's a seperate issue?

Much appreciated!

EDIT: Solved! Turns out it was RIL bug and the phone didn't reboot properly, it got stuck at black screen. Reflashed the phone, no RIL bug since.

[47683.042877] mmc1: Deferred resume completed

[47683.926452] wlanDrvIf_Release

[47684.983062] wlanDrvIf_Stop

[47684.984222] wifi_set_power = 0

[47684.984497] mapphone_wifi_power: 0

[47685.260375] wifi_del_dev

[47685.260772] wifi_remove

[47685.261260] mapphone_wifi_set_carddetect: 0

[47685.261535] mapphone_wifi_set_carddetect: Nobody to notify

[47685.261810] mapphone_wifi_reset: 1

[47685.262298] mapphone_wifi_power: 0

[47685.268218] sdioDrv_remove: calling sdiodrv_shutdown

[47685.274963] TI WLAN: driver unloaded

[47686.034973] suspend: enter suspend

[47686.035278] PM: Preparing system for mem sleep

[47686.035583] Freezing user space processes ... (elapsed 0.07 seconds) done.

[47686.113220] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47686.113891] PM: Entering mem sleep

[47686.113983] Suspending console(s) (use no_console_suspend to debug)

[47686.120574] vfp_pm_save_context: saving vfp state

[47686.120880] PM: Resume timer in 6 secs (218890 ticks at 32768 ticks/sec.)

[47687.373229] Powerdomain (core_pwrdm) didn't enter target state 1

[47687.373260] Could not enter target state in pm_suspend

[47687.374145] wakeup wake lock: ehci_rwu

[47687.400695] PM: Finishing wakeup.

[47687.400970] Restarting tasks ... mmc1: Starting deferred resume

[47687.424865] done.

[47687.425231] suspend: exit suspend, ret = 0 (2014-05-21 12:36:59.528900147 UTC)

[47687.521240] mmc1 set to BYTE mode

[47687.537811] mmc1: Deferred resume completed

[47687.989044] suspend: enter suspend

[47687.989166] PM: Preparing system for mem sleep

[47687.989562] Freezing user space processes ... (elapsed 0.02 seconds) done.

[47688.013641] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47688.014282] PM: Entering mem sleep

[47688.014404] Suspending console(s) (use no_console_suspend to debug)

[47688.018096] pm_op(): platform_pm_suspend+0x0/0x54 returns -16

[47688.018127] PM: Device wakeup_timer.0 failed to suspend: error -16

[47688.018157] PM: Some devices failed to suspend

[47688.040649] PM: Finishing wakeup.

[47688.041137] Restarting tasks ... done.

[47688.111022] suspend: exit suspend, ret = -16 (2014-05-21 12:37:00.214691150 UTC)

[47692.794311] suspend: enter suspend

[47692.794647] PM: Preparing system for mem sleep

[47692.794921] Freezing user space processes ... (elapsed 0.07 seconds) done.

[47692.867309] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47692.867980] PM: Entering mem sleep

[47692.868103] Suspending console(s) (use no_console_suspend to debug)

[47692.878631] vfp_pm_save_context: saving vfp state

[47697.375793] Powerdomain (core_pwrdm) didn't enter target state 1

[47697.375854] Could not enter target state in pm_suspend

[47697.376556] wakeup wake lock: ehci_rwu

[47697.406219] PM: Finishing wakeup.

[47697.406494] Restarting tasks ... mmc1: Starting deferred resume

[47697.430755] done.

[47697.440216] suspend: exit suspend, ret = 0 (2014-05-21 12:37:09.538116478 UTC)

[47697.549682] mmc1 set to BYTE mode

[47697.566253] mmc1: Deferred resume completed

[47697.963745] suspend: enter suspend

[47697.964294] PM: Preparing system for mem sleep

[47697.964569] Freezing user space processes ... (elapsed 0.08 seconds) done.

[47698.054504] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47698.055114] PM: Entering mem sleep

[47698.055297] Suspending console(s) (use no_console_suspend to debug)

[47698.061767] vfp_pm_save_context: saving vfp state

[47698.062072] PM: Resume timer in 26 secs (856621 ticks at 32768 ticks/sec.)

[47699.950653] Powerdomain (core_pwrdm) didn't enter target state 1

[47699.950714] Could not enter target state in pm_suspend

[47699.951690] wakeup wake lock: cpcap-irq

[47699.982666] PM: Finishing wakeup.

[47699.982971] Restarting tasks ... done.

[47700.028198] suspend: exit suspend, ret = 0 (2014-05-21 12:37:12.550170901 UTC)

[47700.028686] suspend: enter suspend

[47700.028961] PM: Preparing system for mem sleep

[47700.029479] Freezing user space processes ... (elapsed 0.05 seconds) done.

[47700.082672] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47700.083343] PM: Entering mem sleep

[47700.083465] Suspending console(s) (use no_console_suspend to debug)

[47700.089538] vfp_pm_save_context: saving vfp state

[47700.089843] PM: Resume timer in 24 secs (790134 ticks at 32768 ticks/sec.)

[47708.055664] Powerdomain (core_pwrdm) didn't enter target state 1

[47708.055694] Could not enter target state in pm_suspend

[47708.056579] wakeup wake lock: ehci_rwu

[47708.081451] PM: Finishing wakeup.

[47708.081726] Restarting tasks ...

[47708.111083] usb_ether_get_stats

[47708.117950] usb_ether_get_stats

[47708.138427] done.

[47708.138793] suspend: exit suspend, ret = 0 (2014-05-21 12:37:20.561767579 UTC)

[47708.158294] mmc1: Starting deferred resume

[47708.272918] mmc1 set to BYTE mode

[47708.288940] mmc1: Deferred resume completed

[47709.272674] suspend: enter suspend

[47709.273010] PM: Preparing system for mem sleep

[47709.273529] Freezing user space processes ... (elapsed 0.07 seconds) done.

[47709.351104] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47709.351776] PM: Entering mem sleep

[47709.351898] Suspending console(s) (use no_console_suspend to debug)

[47709.358459] vfp_pm_save_context: saving vfp state

[47709.358764] PM: Resume timer in 14 secs (486440 ticks at 32768 ticks/sec.)

[47712.815704] Powerdomain (core_pwrdm) didn't enter target state 1

[47712.815734] Could not enter target state in pm_suspend

[47712.816650] wakeup wake lock: ehci_rwu

[47712.843414] PM: Finishing wakeup.

[47712.843688] Restarting tasks ... done.

[47712.865783] suspend: exit suspend, ret = 0 (2014-05-21 12:37:24.526733398 UTC)

[47713.393707] suspend: enter suspend

[47713.394256] PM: Preparing system for mem sleep

[47713.394531] Freezing user space processes ... (elapsed 0.07 seconds) done.

[47713.472137] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

[47713.472717] PM: Entering mem sleep

[47713.472900] Suspending console(s) (use no_console_suspend to debug)

[47713.478759] vfp_pm_save_context: saving vfp state

[47713.479064] PM: Resume timer in 10 secs (351404 ticks at 32768 ticks/sec.)

[47715.424743] Powerdomain (core_pwrdm) didn't enter target state 1

[47715.424804] Could not enter target state in pm_suspend

[47715.426452] wakeup wake lock: event5-2379

[47715.453735] PM: Finishing wakeup.

[47715.454223] Restarting tasks ...

[47715.477142] request_suspend_state: wakeup (3->0) at 28545341205199 (2014-05-21 12:37:27.527770998 UTC)

[47715.484680] done.

[47715.538940] request_suspend_state: wakeup (0->0) at 28545403033817 (2014-05-21 12:37:27.589569099 UTC)

[47715.606140] suspend: exit suspend, ret = 0 (2014-05-21 12:37:27.656799328 UTC)

[47715.607147] mmc1: Starting deferred resume

[47715.615051] qtouch_force_reset: Forcing HW reset

[47715.615173] gpiofix: get_gpio_by_name(touch_panel_rst)

[47715.730316] mmc1 set to BYTE mode

[47715.746978] mmc1: Deferred resume completed

[47715.777679] do_cmd_proc_msg:EEPROM checksum matches

[47715.778381] qtouch_force_calibration: Forcing calibration

[47715.779052] do_cmd_proc_msg: Reset done.

[47715.779235] do_cmd_proc_msg: Self-calibration started.

[47715.785980] te_scan_line is set = 768

[47715.816497] done EDISCO CTRL ENABLE

[47715.861206] do_cmd_proc_msg: Self-calibration started.

[47715.964996] TIWLAN: driver init

[47715.965118] TIWLAN SDIO init

[47715.965332] in sdio_init() sdcnum= 3

[47715.966888] in sdioDrv_init(), before platform_driver_register(&sdioDrv_struct)

[47715.967224] TIWLAN SDIO probe: initializing mmc3 device

[47715.972076] Configuring SDIO DMA registers!!!

[47715.972229] pdev->id is 2!!!

[47715.984405] hPlatform_Wlan_Hardware_Init

[47715.984527] wifi_add_dev

[47715.984802] wifi_probe

[47715.987792] wifi_set_power = 0

[47715.987884] mapphone_wifi_power: 0

[47716.011077] drv->irq = 225, 2

[47716.033874] Panel is turned on

[47716.223266] wlanDrvIf_Open

[47716.223358] wlanDrvIf_Start

[47716.324401] TIWLAN: 1113.803541: pInitParams->RoamingScanning_2_4G_enable 0

[47716.324737] wifi_set_power = 1

[47716.324859] mapphone_wifi_power: 1

[47716.347076] wifi_set_power = 0

[47716.347259] mapphone_wifi_power: 0

[47716.370513] wifi_set_power = 1

[47716.370605] mapphone_wifi_power: 1

[47716.448638] TIWLAN SDIO sdioDrv_InitHw()!!SDIO clock Configuration is now set to 24Mhz

[47716.449127] TIWLAN: 1113.928296: CHIP VERSION... set 1273 chip top registers

[47716.450012] TIWLAN: 1113.929181: Working on a 1273 PG 2.0 board.

[47716.450134] TIWLAN: 1113.929303: Starting to process NVS...

[47716.450286] TIWLAN: 1113.929456: NVS found, EEPROM Image addr=0xcdef7c00, EEPROM Len=0x0x1d4

[47716.450805] TIWLAN: 1113.929944: Chip ID is 0x4030111.

[47716.451232] TIWLAN: 1113.930372: FEM Type 1

[47716.451507] TIWLAN: 1113.930677: Starting to download firmware...

[47716.497283] TIWLAN: 1113.976423: Starting to download firmware...

[47716.513214] TIWLAN: 1113.992353: Starting to download firmware...

[47716.513488] TIWLAN: 1113.992658: Starting to download firmware...

[47716.517120] TIWLAN: 1113.996290: Starting to download firmware...

[47716.519317] TIWLAN: 1113.998456: Starting to download firmware...

[47716.520233] TIWLAN: 1113.999402: Finished downloading firmware.

[47716.520355] TIWLAN: 1113.999494: Firmware running.

[47716.543731] ADDRCONF(NETDEV_UP): tiwlan0: link is not ready

[47716.544097] TIWLAN: 1114.023267:

[47716.545166] TIWLAN: 1114.024335: --------------------------------------------------------------------

[47716.545410] TIWLAN: 1114.024579: Driver Version : WiLink_Driver_6.1.0.0.131_iefix

[47716.545593] TIWLAN: 1114.024762: Firmware Version: Rev 6.1.6.40.6

[47716.545684] TIWLAN: 1114.024854: Station ID : C8-AA-21-94-C6-13

[47716.545867] TIWLAN: 1114.025037: --------------------------------------------------------------------

[47716.546020] TIWLAN: 1114.025190:

[47716.579315] TIWLAN: 1114.058454: Interrogate TX/RX parameters

[47716.882385] AUDIO_DRIVER:CODEC in phone mode released

[47716.886291] turning off regulator

[47716.892944] AUDIO_DRIVER:spkr1 = 0x200000, spkr2 = 0x0

[47717.042327] omapdss DSI error: TE not received for 250ms!

[47718.589904] wlanDrvIf_Release

[47718.592315] wlanDrvIf_Start

[47718.592834] TIWLAN: 1116.072004: DrvMain , CONSOLE:Action is identical to last action!

[47718.593597] TIWLAN: 1116.072767: Action is identical to last action!

[47719.798248] turning off regulator

[47722.798950] request_suspend_state: sleep (0->3) at 28552663013065 (2014-05-21 12:37:34.849578864 UTC)

[47794.599822] binder: release 2459:2459 transaction 711400 out, still active

[47799.826263] mmc0: Starting deferred resume

[47800.056152] mmc0: Deferred resume completed

[47829.125366] binder: 2379:3695 transaction failed 29189, size 104-0

[47829.125671] binder: send failed reply for transaction 711400, target dead

No errors detected