From: Tawfik Bayyouk <tawfik@marvell.com>
To: linux-pm@lists.linux-foundation.org
Cc: Tzachi Perelstein <tzachi@marvell.com>
Subject: USB PM suspend/resume problems with Marvell Orion SoC
Date: Sun, 06 Jan 2008 17:51:24 +0200 [thread overview]
Message-ID: <4780F8FC.4070309@marvell.com> (raw)
Hi,
I am working with Linux version 2.6.24-rc4 for adding the power
management capabilities to the USB ehci driver for Orion SoC
device of Marvell.
I need help in 2 issues:
1- The SoC device supports 2 levels of power management and I'd
like to reflect this at the driver level.
The first is "standby" where only clocks are halted while
preserving the registers values. The second is "mem" where the
whole SoC (including the USB HC) are powered off.
What is the correct way to distinguish between the 2 modes in
the .suspend and .resume routines of the platform_driver?
I believe that the parameter I am looking for is the PM target
state which is usually passed in the .set_target of the
platform_suspend_ops routine.
2- After resuming from "mem" suspend, the USB can no longer
detect plugging in and out of USB devices.
I have investigate the problem and found that 4 registers where
not configured correctly. Saving the values of these registers
in the .suspend routine and loading them back in the .resume
routine resolves the problem.
The following are the 4 problematic registers:
USBCMD (0x140)
USBINTR (0x148)
PORTSC1 (0x184)
USBMODE (0x1A8)
I would be very thankful for any clue in either of the 2 problems.
Greetings,
Tawfik
next reply other threads:[~2008-01-06 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-06 15:51 Tawfik Bayyouk [this message]
2008-01-06 18:50 ` USB PM suspend/resume problems with Marvell Orion SoC Rafael J. Wysocki
2008-01-07 16:21 ` Alan Stern
2008-01-08 13:29 ` Tawfik Bayyouk
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=4780F8FC.4070309@marvell.com \
--to=tawfik@marvell.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=tzachi@marvell.com \
/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