I tried the ways you mentioned,but met some kernel panic here:
request_suspend_state: sleep (0->3) at 114286010723 (2000-01-01
00:02:06.596801682 UTC)
save exit: isCheckpointed 1
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.03 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Unable to handle kernel NULL pointer dereference at virtual address
00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 0 [#1]
Modules linked in: bmm
CPU: 0    Not tainted  (2.6.28 #217)
PC is at 0x0
LR is at mmc_suspend_host+0x5c/0xe8
pc : [<00000000>]    lr : [<c02b096c>]    psr: 20000033
sp : c703fe58  ip : c707e880  fp : c703fe6c
r10: 00000002  r9 : c703feb8  r8 : c054af80
r7 : c0529d4c  r6 : 00000000  r5 : c0529ca0  r4 : c71ac400
r3 : 00000001  r2 : c0446f20  r1 : 60000013  r0 : c71ac400
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment kernel
Control: 0000397f  Table: a58a4018  DAC: 00000035
Process suspend (pid: 7, stack limit = 0xc703e270)
Stack: (0xc703fe58 to 0xc7040000)
fe40:                                                       c054ae84
c0529ca0
fe60: c703fe7c c703fe70 c02b88bc c02b091c c703fe8c c703fe80 c0206188
c02b88ac
fe80: c703fe9c c703fe90 c020627c c0206174 c703feb4 c703fea0 c02084dc
c0206234
fea0: c0529d74 c0529ca0 c703feec c703feb8 c02089ec c02084ac c052b8f4
c76ec2d4
fec0: c703fee4 c05c0060 00000003 c05c0060 00000003 00000000 00000000
00000000
fee0: c703ff0c c703fef0 c00a643c c0208764 c05c0524 00000003 c703e000
c703ffac
ff00: c703ff24 c703ff10 c00a66b8 c00a63e8 c7001fa0 c053637c c703ff84
c703ff28
ff20: c00a7d70 c00a65c8 c701b9a0 00000015 c77e8080 c057c588 c703ff5c
c703ff48
ff40: c0099530 c0099448 00000000 c5925cf0 c703ff74 c703ff60 c77e8080
c5925cc0
ff60: c701b9a0 c77e8080 c703ffa4 c703ff78 c7001fa0 c00a7c80 c703ffa4
c703ff88
ff80: c00912fc c00a7c8c c703ffac c703e000 c7001fa8 c7001fa0 c703ffdc
c703ffa8
ffa0: c0091ef8 c009121c c03aa444 00000000 c701b9a0 c00954d0 c703ffb8
c703ffb8
ffc0: c7001fa0 c0091e54 00000000 00000000 c703fff4 c703ffe0 c0094fcc
c0091e60
ffe0: 00000000 00000000 00000000 c703fff8 c0083030 c0094f88 00110000
10304400
Backtrace:
[<c02b0910>] (mmc_suspend_host+0x0/0xe8) from [<c02b88bc>]
(pxamci_suspend+0x1c/0x20)
 r5:c0529ca0 r4:c054ae84
[<c02b88a0>] (pxamci_suspend+0x0/0x20) from [<c0206188>]
(platform_drv_suspend+0x20/0x24)
[<c0206168>] (platform_drv_suspend+0x0/0x24) from [<c020627c>]
(platform_pm_suspend+0x54/0x60)
[<c0206228>] (platform_pm_suspend+0x0/0x60) from [<c02084dc>] (pm_op
+0x3c/0x94)
[<c02084a0>] (pm_op+0x0/0x94) from [<c02089ec>] (device_suspend
+0x294/0x504)
 r5:c0529ca0 r4:c0529d74
[<c0208758>] (device_suspend+0x0/0x504) from [<c00a643c>]
(suspend_devices_and_enter+0x60/0x170)
[<c00a63dc>] (suspend_devices_and_enter+0x0/0x170) from [<c00a66b8>]
(pm_suspend+0xfc/0x154)
 r7:c703ffac r6:c703e000 r5:00000003 r4:c05c0524
[<c00a65bc>] (pm_suspend+0x0/0x154) from [<c00a7d70>] (suspend
+0xf0/0x11c)
 r5:c053637c r4:c7001fa0
[<c00a7c80>] (suspend+0x0/0x11c) from [<c00912fc>] (run_workqueue+0xec/
0x19c)
 r5:c00a7c80 r4:c7001fa0
[<c0091210>] (run_workqueue+0x0/0x19c) from [<c0091ef8>] (worker_thread
+0xa4/0x128)
 r6:c7001fa0 r5:c7001fa8 r4:c703e000
[<c0091e54>] (worker_thread+0x0/0x128) from [<c0094fcc>] (kthread
+0x50/0x7c)
 r7:00000000 r6:00000000 r5:c0091e54 r4:c7001fa0
[<c0094f7c>] (kthread+0x0/0x7c) from [<c0083030>] (do_exit+0x0/0x798)
 r5:00000000 r4:00000000
Code: bad PC value.
Kernel panic - not syncing: Fatal exception

how can I do for this?thanks
On 7月21日, 下午9时17分, Xinyu Chen <muddo...@gmail.com> wrote:
> On Jul 20, 5:10 pm, robert_mu <mjko...@126.com> wrote:
>
>
>
>
>
> > Hi everybody:
> >     I met a trouble and it confuse me a fews days,that is when my
> > android wake up,sometimes occours some error aboutT flash card ,here
> > is the log:
> > sd 0:0:0:0: [sda] Starting disk
> > mmc0: new SD card at address 5a61
> > mmc mmc0:5a61: parent mmc0 is sleeping, will not add
> > −−−−−−−−−−−−[ cut here ]−−−−−−−−−−−−
> > WARNING: at drivers/base/power/main.c:78 device_pm_add+0x6c/0xf0()
>
> > here is the trace:
> > Call Trace:
> > [warn_on_slowpath+95/144] warn_on_slowpath+0x5f/0x90
> > [device_pm_add+24/240] ? device_pm_add+0x18/0xf0
> > [device_pm_add+108/240] device_pm_add+0x6c/0xf0
> > [device_add+1092/1376] device_add+0x444/0x560
> > [_end+510110570/2109230024] :mmc_core:mmc_add_card+0xa2/0x140
> > [_end+510117927/2109230024] :mmc_core:mmc_attach_sd+0x17f/0x860
> > [_end+510109176/2109230024] ? :mmc_core:mmc_rescan+0x0/0x1c0
> > [_end+510109545/2109230024] :mmc_core:mmc_rescan+0x171/0x1c0
> > [run_workqueue+246/560] run_workqueue+0xf6/0x230
> > [worker_thread+167/288] worker_thread+0xa7/0x120
> > [autoremove_wake_function+0/64] ? autoremove_wake_function+0x0/0x40
> > [worker_thread+0/288] ? worker_thread+0x0/0x120
> > [kthread+73/144] kthread+0x49/0x90
> > [child_rip+10/18] child_rip+0xa/0x12
> > [restore_args+0/48] ? restore_args+0x0/0x30
> > [kthread+0/144] ? kthread+0x0/0x90
> > [child_rip+0/18] ? child_rip+0x0/0x12
>
> > I found some conclusion about this:
> > It's a result of the way the MMC core is written. There's an
> > upper-level controller device, and below that is a host device, and
> > below that is the card itself. The code that adds and removes children
> > of the host device runs as part of the controller driver.
> > Hence the problem: The driver adds children below the _host_ as soon
> > as
> > the _controller_ is resumed, even though the host is still suspended.
> > It's not as big an error as it sounds -- the host was originally a
> > class_device and then got converted over to a regular device. It
> > doesn't have a driver of its own.
> > This is one of the things that needs to be fixed up as part of the
> > reworking of the system-sleep API. I simply haven't had any time to
> > work on it (and I'm not likely to in the near future).
>
> > but I still don't know how to do,is there anyone show me a easy way to
> > fix it ?givng source code and patch is better :),thanks all
> >    PS:my linux kernel version:2.6.28
>
> Try to enable CONFIG_MMC_UNSAFE_RESUME
>
> BR
> Xinyu Chen- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to