From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Trimarchi Subject: resume of mmc card on pxa320 device Date: Wed, 21 Apr 2010 17:36:40 +0200 Message-ID: <4BCF1B88.1030806@gandalf.sssup.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: linux-pm@lists.linux-foundation.org Cc: ARM Linux Mailing List List-Id: linux-pm@vger.kernel.org Hi, I have done all the pm_test before submit this mail and all pass and mmc card work before suspending I'm testing the resume from standby. Kernel version is 2.6.32. [ 1036.567020] platform pxa2xx-ac97: resume [ 1036.570922] pxa2xx-mci pxa2xx-mci.0: resume [ 1036.575086] mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 20 width 0 timing 0 [ 1036.582264] PXAMCI: clkrt = ffffffff cmdat = 800 The resume process stop here: [ 1368.710901] [] (schedule+0x0/0x3c8) from [] (schedule_timeout+0x14c/0x200) [ 1368.719465] [] (schedule_timeout+0x0/0x200) from [] (schedule_timeout_uninterruptible+0x28/0x2c) [ 1368.729931] [] (schedule_timeout_uninterruptible+0x0/0x2c) from [] (msleep+0x1c/0x28) [ 1368.739442] [] (msleep+0x0/0x28) from [] (mmc_power_up+0xc4/0x14c) [ 1368.747318] [] (mmc_power_up+0x0/0x14c) from [] (mmc_resume_host+0x11c/0x1c8) [ 1368.756131] r8:c02692dc r7:00000010 r6:c78ffe60 r5:c6595518 r4:c6595400 [ 1368.762876] [] (mmc_resume_host+0x0/0x1c8) from [] (pxamci_resume+0x1c/0x28) [ 1368.771604] r5:c01ec4b8 r4:c02692a8 [ 1368.775195] [] (pxamci_resume+0x0/0x28) from [] (platform_pm_resume+0x34/0x54) [ 1368.784104] [] (platform_pm_resume+0x0/0x54) from [] (pm_op+0x6c/0x94) [ 1368.792324] [] (pm_op+0x0/0x94) from [] (dpm_resume_end+0x108/0x478) [ 1368.800362] r5:c0289e64 r4:c02692a8 [ 1368.803957] [] (dpm_resume_end+0x0/0x478) from [] (suspend_devices_and_enter+0x108/0x1dc) [ 1368.813818] [] (suspend_devices_and_enter+0x0/0x1dc) from [] (enter_state+0xf0/0x128) [ 1368.823322] r7:c01d5a50 r6:00000000 r5:c0233af0 r4:00000001 [ 1368.829015] [] (enter_state+0x0/0x128) from [] (state_store+0x88/0xc4) [ 1368.837227] r7:c01d5a50 r6:00000007 r5:00000001 r4:c17ef000 [ 1368.842918] [] (state_store+0x0/0xc4) from [] (kobj_attr_store+0x1c/0x28) [ 1368.851401] [] (kobj_attr_store+0x0/0x28) from [] (sysfs_write_file+0x10c/0x18c) [ 1368.860482] [] (sysfs_write_file+0x0/0x18c) from [] (vfs_write+0xb8/0x16c) [ 1368.869041] [] (vfs_write+0x0/0x16c) from [] (sys_write+0x44/0x74) Change the msleep with udelay let complete the resume process. All the task are blocked or in sleep state. The device start from a ramdisk and the mmc is not mounted before suspend. The kernel doesn't rise any exception or problem. The funny thing is that a friend has the same device and he doesn't have the same problem with the same kernel. Any suggest or test that I can do? Michael Trimarchi