public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: kmpark@infradead.org
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: The clock problem in OMAP2 McSPI
Date: Thu, 16 Aug 2007 19:21:10 -0700	[thread overview]
Message-ID: <200708161921.10232.david-b@pacbell.net> (raw)
In-Reply-To: <002801c7e061$2da499c0$e1ac580a@swcenter.sec.samsung.co.kr>

On Thursday 16 August 2007, Kyungmin Park wrote:
> After booting, it oops with following messages[2].
> 
> So I reverted only clock parts as before. Then it's work well.
> I think it has some clock problem.
> 
> Do you have any idea?

Nope, sorry.  I looked at that driver code, and what I
see is neatly paired clk_enable()/clk_disable() calls ...
stuff that should be "obviously correct".  And which
works fine here...

I don't see how that should be able to cause a disable()
of something that's already got usecount 0.

I wouldn't *think* that the updates in the clock framework
have caused problems.  But regardless, to debug this I'd
start by tracing the refcounts of that functional clock.

The only slightly odd unusual thing in that driver should
be that the two clocks would normally be disabled until
there's some I/O to be done (either to the McSPI registers
or to a SPI device).  Most drivers leave clocks enabled all
the time, needlessly wasting power.

- Dave

  reply	other threads:[~2007-08-17  2:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16 23:57 The clock problem in OMAP2 McSPI Kyungmin Park
2007-08-17  2:21 ` David Brownell [this message]
2007-08-17  3:05   ` Kyungmin Park
2007-08-17  3:53     ` David Brownell
2007-08-17  7:44       ` Kyungmin Park

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=200708161921.10232.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=kmpark@infradead.org \
    --cc=linux-omap-open-source@linux.omap.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