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 20:53:46 -0700 [thread overview]
Message-ID: <200708162053.46288.david-b@pacbell.net> (raw)
In-Reply-To: <003501c7e07b$8801d850$e1ac580a@swcenter.sec.samsung.co.kr>
On Thursday 16 August 2007, Kyungmin Park wrote:
> >
> > 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 agree. The code of clock is completely matched and only enables it needed
> for McSPI
So it looks like the issue will be elsewhere...
> > 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.
>
> If it required the some delay time to work correctly?
Not at the level of clock refcounts. Maybe to restart some
oscillator or PLL, but that's not an issue here.
> Since the clock pointer is always correct and it has ick and fck.
> Or other kernel features such as tickless, high-res affects the clock
> framework?
I'd more suspect something else mucking with that clock.
You said this happens early. That suggests that brute
force dump_stack() debugging on enable/disable of that
clock would be informative...
- Dave
next prev parent reply other threads:[~2007-08-17 3:53 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
2007-08-17 3:05 ` Kyungmin Park
2007-08-17 3:53 ` David Brownell [this message]
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=200708162053.46288.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