linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: haojian.zhuang@gmail.com (Haojian Zhuang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pxa/hx4700: Fix basic suspend/resume
Date: Mon, 27 Feb 2012 10:12:13 +0800	[thread overview]
Message-ID: <CAN1soZwTEppNZNHs5-_ORrNEt9x2rtV1omd6JGH_N4mzSSLD0w@mail.gmail.com> (raw)
In-Reply-To: <1330253653.3673.8.camel@flow>

On Sun, Feb 26, 2012 at 6:54 PM, Philipp Zabel <philipp.zabel@gmail.com> wrote:
> Am Mittwoch, den 11.05.2011, 19:49 +0000 schrieb Paul Parsons:
>> Basic suspend/resume is fixed by ensuring that the PGSR registers are set correctly before sleep mode is entered. In particular four of the active low resets need to be driven high while in sleep mode, otherwise the unit resets itself instead of suspending. Another problem was that the PCFR_GPROD bit is apparently set by the HTC bootloader; this caused GPIO reset (i.e. the reset button) to fail immediately after returning from sleep mode.
>>
>> Driver-specific bugs still remain. In particular the mmc driver does not resume properly after returning from sleep mode, thus preventing sleep mode from being entered a second time.
>>
>> Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
>> ---
>> --- clean-2.6.39-rc7/arch/arm/mach-pxa/hx4700.c ? ? ? 2011-05-11 00:54:10.787247169 +0100
>> +++ linux-2.6.39-rc7/arch/arm/mach-pxa/hx4700.c ? ? ? 2011-05-11 20:21:54.026109594 +0100
>> @@ -120,7 +120,11 @@ static unsigned long hx4700_pin_config[]
>> ? ? ? GPIO19_SSP2_SCLK,
>> ? ? ? GPIO86_SSP2_RXD,
>> ? ? ? GPIO87_SSP2_TXD,
>> - ? ? GPIO88_GPIO,
>> + ? ? MFP_CFG_OUT(GPIO88, AF0, KEEP_OUTPUT), ?/* TSC2046_CS */
>
> What you want here is to keep the SPI chip select deasserted (high)
> during suspend, so I think that should be DRIVE_HIGH instead.
>
> Otherwise,
> Acked-by: Philipp Zabel <philipp.zabel@gmail.com>
>
This patch keeps a lot of devices in power-on mode (not reset mode).
Is it necessary?

Thanks
Haojian

  reply	other threads:[~2012-02-27  2:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 19:49 [PATCH] pxa/hx4700: Fix basic suspend/resume Paul Parsons
2011-05-13 10:32 ` Dmitry Artamonow
2011-05-13 19:18   ` Paul Parsons
2011-05-14 20:18     ` Dmitry Artamonow
2011-05-14 22:32       ` Paul Parsons
2011-05-15 13:14         ` Dmitry Artamonow
2011-05-15 13:27           ` Paul Parsons
2012-02-26 10:54 ` Philipp Zabel
2012-02-27  2:12   ` Haojian Zhuang [this message]
2012-02-27  2:32     ` Paul Parsons
2012-02-27  3:15       ` Haojian Zhuang
2012-02-27  9:04   ` Russell King - ARM Linux
2012-02-27  9:54     ` Haojian Zhuang
2012-02-27 14:31     ` Paul Parsons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN1soZwTEppNZNHs5-_ORrNEt9x2rtV1omd6JGH_N4mzSSLD0w@mail.gmail.com \
    --to=haojian.zhuang@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).