From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Date: Thu, 14 Aug 2014 21:17:13 +0000 Subject: Re: smsc911x_suspend crash (was: Re: [PATCH] ARM: shmobile: r8a7778: Add missing call to shmobile_in Message-Id: <20140814211712.GC2029@verge.net.au> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven Cc: Geert Uytterhoeven , Kuninori Morimoto , Magnus Damm , Linux-sh list , Kevin Hilman , "netdev@vger.kernel.org" On Thu, Aug 14, 2014 at 10:52:30AM +0200, Geert Uytterhoeven wrote: > Hi Simon, > > (taking this to netdev for the crash in smsc911x_suspend()) > > On Thu, Aug 14, 2014 at 8:16 AM, Simon Horman wrote: > > while this may be part of the puzzle my light testing shows > > that suspend-to-ram does not appear to work with this patch applied. > > Thanks for testing! > > > My procedure is as followw. > > > > 1. Apply this patch on top of renesas-devel-v3.16-20140811 > > 2. make bockw_defconfig > > 3. Select CONFIG_SUSPEND > > 4. Update r8a7778-bockw.dts to include no_console_suspend in bootargs > > Alternative: > > echo 0 > /sys/module/printk/parameters/console_suspend Thanks, I didn't know that. > > 4. Boot and then: > > > > i. echo enabled > /sys/devices/platform/sh-sci.0/tty/ttySC0/power/wakeup > > ii. echo mem > /sys/power/wakeup_count > > Uh? > > echo mem > /sys/power/state > > > root@debian:~# echo mem > /sys/power/wakeup_count > > -bash: echo: write error: Invalid argument > > I guess there's an "echo mem > /sys/power/state" here? Yes, sorry about that noise. I had some stray commands in my test-run and edited out the correct one.