Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-22 Thread Pavel Machek
Hi! On Wed 2012-09-19 20:01:10, Theodore Ts'o wrote: > On Thu, Sep 20, 2012 at 01:23:49AM +0200, Pavel Machek wrote: > > > > I'm not sure I agree. > > > > If you treat root fs as removable, you'll get "crash". You'll need to > > replay the journal, but data is safe. > > > > If you treat it as n

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-19 Thread Theodore Ts'o
On Thu, Sep 20, 2012 at 01:23:49AM +0200, Pavel Machek wrote: > > I'm not sure I agree. > > If you treat root fs as removable, you'll get "crash". You'll need to > replay the journal, but data is safe. > > If you treat it as non-removable, and someone manages to remove it, > mount, and reinsert,

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-19 Thread Pavel Machek
On Mon 2012-09-10 12:33:45, Theodore Ts'o wrote: > On Mon, Sep 10, 2012 at 10:11:48AM -0500, Matt Sealey wrote: > > Wouldn't it be better if the root filesystem was marked as > > non-removable in the device tree - or in the case of a truly removable > > card, just marked in the MMC subsystem - and

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-10 Thread Theodore Ts'o
On Mon, Sep 10, 2012 at 10:11:48AM -0500, Matt Sealey wrote: > Wouldn't it be better if the root filesystem was marked as > non-removable in the device tree - or in the case of a truly removable > card, just marked in the MMC subsystem - and the MMC subsystem skipped > the "it could be removed" for

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-10 Thread Matt Sealey
Wouldn't it be better if the root filesystem was marked as non-removable in the device tree - or in the case of a truly removable card, just marked in the MMC subsystem - and the MMC subsystem skipped the "it could be removed" for suspend/resume operations? Whether you can or you cannot remove an

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-08 Thread Mike Thompson
I figured the source of my problem. Normally, the Linux kernel will treat mmc cards as removed during suspend. This is in case the card is swapped by the user during the suspend. However, on the OLinuXino the mmc device is the root file system If the Linux kernel treats the mmc card as removed

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-06 Thread Shawn Guo
Copy a few more lists to get wider audience ... Regards, Shawn On Thu, Sep 06, 2012 at 10:03:35PM -0700, Mike Thompson wrote: > Hi, > > I'm working on adding power management support for the imx233 on > 3.6-rc2. In general I'm working on porting the pm.c file from the > Freescale 2.6.35 kernel