All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Kim Kyuwon <chammoru@gmail.com>
Cc: OMAP <linux-omap@vger.kernel.org>,
	박경민 <kyungmin.park@samsung.com>, "Paul Walmsley" <paul@pwsan.com>
Subject: Re: [PATCH] OMAP3: PM: Add the wakeup source driver, v3
Date: Thu, 30 Apr 2009 07:21:09 -0700	[thread overview]
Message-ID: <87my9yte7e.fsf@deeprootsystems.com> (raw)
In-Reply-To: <4d34a0a70904300017p1ff38048oae675a4e93e68124@mail.gmail.com> (Kim Kyuwon's message of "Thu\, 30 Apr 2009 16\:17\:38 +0900")

Kyuwon,

Kim Kyuwon <chammoru@gmail.com> writes:

> Hi Kevin,
> Thank you for showing steady interest in this driver.
>
> On Tue, Apr 21, 2009 at 9:15 AM, Kevin Hilman
> <khilman@deeprootsystems.com> wrote:
>>
>> Hi Kyuwon,
>>
>> While I still like the concept of this driver, I'm still not quite
>> happy about how it is implemented for various reasons.  Most of which
>> have to do with the fact that this driver does many things that really
>> should be the job of other layers.  In particular, the list of
>> omap3_wake_events is a bit troubling.  It really should be handled by
>> the omapdev layer.  You'll see that you are duplicating the data that
>> is handled there.  Rather, we should just extend the omapdev data to
>> handle the wakeup events for that device.
>
> If you allow me to insert a new field whose name is "mask" in the
> omapdev struct, I think I can extend the omapdev to handle the wakeup
> events.

Extending omapdev would be fine.

>> Also, I still think the WKST register reading should be done in the
>> PRCM interrupt handler.  In your previous attempt, you were seeing a
>> bunch of non-device wakeup related interrupts.   Can you try again
>> with the attached patch (thanks to Paul Walmseley) which should help
>> us debug why you were seeing spurious PRCM interrupts.
>
> First of all, sorry for giving you the wrong information in the
> previous mail. I found that we actually have configured GPTIMER12 as
> the system timer.  And I tried with the attached patch, but I can't
> see any debug message.  However even now, PRCM interrupt handler is
> invoked quite often due to the system timer.

That's what I assumed was happening.

> As far as I know, after Peter's [OMAP3: PM: CPUidle: Add new
> lower-latency C1 state] patch is applied, the system is in 'wfi' state
> in every idle state. So whenever the system timer wake up the system
> from idle, I think PRCM interrupt occurs. Do you think still the WKST
> register should be read in the PRCM interrupt handler? ;)

Yes. The WKST registers are already being read in the handler so they
can be properly cleared.  All you are adding is the saving of them.

In addition, you should not enter idle between the time the system
wakes from resume and your resume handler runs so you should be able
to get the correct WKST values.

>> Also, I know we discussed this before, but I think the GPIO wakeup
>> source stuff really belongs in a separate patch, and if you think it
>> is still useful, and cannot be done by just enabling a GPIO IRQ from
>> the board file, I suggest you propose a patch to the generic GPIO
>> layer to add this interface.
>
> OK, I will remove this GPIO wakeup feature. But I want to know more
> detailed information about wakeup event . So, instead of using the
> GPIO wakeup, I'm planning using WAKEUPEVENT bit in CONTROL_PADCONF_x
> registers.

That sounds OK.  The current mux layer is lacking any knowledge of the
wake bits in the PADCONF regs, so I'd be interested in any ideas you
have of adding that support.

Kevin


  reply	other threads:[~2009-04-30 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 10:43 [PATCH] OMAP3: PM: Add the wakeup source driver, v3 Kim Kyuwon
2009-04-14  5:20 ` Kim Kyuwon
2009-04-21  0:15 ` Kevin Hilman
2009-04-30  7:17   ` Kim Kyuwon
2009-04-30 14:21     ` Kevin Hilman [this message]
2009-05-05  9:08       ` Kim Kyuwon

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=87my9yte7e.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=chammoru@gmail.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.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 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.