All of lore.kernel.org
 help / color / mirror / Atom feed
From: rumjantsev@papillon.ru (237 Rumjantsev Egor (PROG))
To: linux-arm-kernel@lists.infradead.org
Subject: vpack270 and sleep mode
Date: Wed, 26 May 2010 16:43:51 +0600	[thread overview]
Message-ID: <4BFCFB67.6040104@papillon.ru> (raw)
In-Reply-To: <19452.61138.172496.920965@ipc1.ka-ro>

26.05.2010 15:50, Lothar Wa?mann ?????:
> Hi,
>
>> static struct device_driver pxa2xx_flash_driver = {
>                  ^^^^^^^^^^^^1
>>           .name           = "pxa2xx-flash",
>>           .bus            =&platform_bus_type,
>                               ^^^^^^^^^^^^^^^^^^
> This is WRONG!
> platform drivers require a struct platform_driver and MUST be
> registered using platform_driver_register()!
> The platform suspend/resume expects the struct device_driver to be
> embedded within a struct platform_driver.
>
> See https://patchwork.kernel.org/patch/5894/
>
> We should probably add some code to driver_register() to let it refuse
> to register drivers with a 'platform_bus_type'.
>
>
> Lothar Wa?mann

Thank you! This patch helped to pass core test but my board still 
doesn't resume from sleep mode

May be some of Power Manager registers set up not correctly ?

dm9000 dm9000.0: LATE suspend
platform pxa27x-pwm.1: LATE suspend
platform pxa27x-pwm.0: LATE suspend
platform pxa27x-ssp.2: LATE suspend
platform pxa27x-ssp.1: LATE suspend
platform pxa27x-ssp.0: LATE suspend
platform pxa2xx-i2c.1: LATE suspend
platform sa1100-rtc: LATE suspend
platform pxa2xx-i2s: LATE suspend
pxa2xx-uart pxa2xx-uart.2: LATE suspend
pxa2xx-uart pxa2xx-uart.1: LATE suspend
pxa2xx-uart pxa2xx-uart.0: LATE suspend
platform pxa27x-udc: LATE suspend
pxa_pm_enter(): RCSR value: 0x00000000
pxa_pm_enter(): state: 3
pxa_pm_enter(): Power regs:
pxa_pm_enter(): GPDR0: 0x0070E200
pxa_pm_enter(): PWER: 0x00000001
pxa_pm_enter(): PFER: 0x00000000
pxa_pm_enter(): PRER: 0x00000001
pxa_pm_enter(): PGSR0: 0x00010000
pxa_pm_enter(): PGSR1: 0x000F2000
pxa_pm_enter(): PGSR2: 0x0404C000
pxa_pm_enter(): PGSR3: 0x00000020
pxa27x_cpu_pm_enter(): go to suspend : 3
pxa27x_cpu_pm_enter(): PCFR: 0x21
pxa27x_cpu_pm_enter(): PSSR: 0x0
pxa27x_cpu_pm_enter(): PSLR: 0xCC100004
pxa27x_cpu_pm_enter(): PSPR: 0x803503E0
pxa27x_cpu_pm_enter(): CKEN: 0x500226
pxa27x_cpu_pm_enter(): OSCC: 0x3


-- 
Rumjantsev Egor

      reply	other threads:[~2010-05-26 10:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 19:46 [PATCH] pxa/vpac270: add ide support Marek Vasut
2010-04-26 21:05 ` Daniel Mack
2010-04-26 21:15   ` Marek Vasut
     [not found] ` <4BFBBECD.70803@papillon.ru>
     [not found]   ` <201005251438.09494.marek.vasut@gmail.com>
2010-05-25 12:39     ` vpack270 and sleep mode Marek Vasut
2010-05-25 13:26       ` 237 Rumjantsev Egor (PROG)
2010-05-25 15:02         ` Marek Vasut
2010-05-25 15:35           ` 237 Rumjantsev Egor (PROG)
2010-05-25 20:24         ` Russell King - ARM Linux
2010-05-25 20:47           ` Marek Vasut
2010-05-26  3:47             ` 237 Rumjantsev Egor (PROG)
2010-05-26  9:07               ` Russell King - ARM Linux
2010-05-26  9:19                 ` 237 Rumjantsev Egor (PROG)
2010-05-26  9:27                   ` Russell King - ARM Linux
2010-05-26  9:50                     ` 237 Rumjantsev Egor (PROG)
2010-05-26  9:50                   ` Lothar Waßmann
2010-05-26 10:43                     ` 237 Rumjantsev Egor (PROG) [this message]

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=4BFCFB67.6040104@papillon.ru \
    --to=rumjantsev@papillon.ru \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.