From: Daniel Ng2 <daniel.ng1234@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: setbat() in udbg_init_cpm() required to avoid driver lockup
Date: Mon, 18 Jul 2011 22:39:01 -0700 (PDT) [thread overview]
Message-ID: <32088424.post@talk.nabble.com> (raw)
Our USB Device Controller (UDC) driver seems to get stuck in a loop waiting
for the CPM Command Register to indicate that the CPM has finished executing
a command. (It should do this by setting the cpmcr 'Command Done' bit).
This only happens if I disable the 'Early Debug' Kernel Hacking .config
parameter. If Early Debug is enabled, then the problem goes away.
I've narrowed it down to this line in udbg_init_cpm(void):
setbat(1, 0xf0000000, 0xf0000000, 0x40000, PAGE_KERNEL_NCG);
-without this line, the driver gets stuck in the loop.
Can anyone suggest why?
Also, what undesireable effects might there be of keeping the above call to
setbat()?
System:
-MPC8272 (CPM2)
-Kernel 2.6.30.3
Cheers,
Daniel
--
View this message in context: http://old.nabble.com/setbat%28%29-in-udbg_init_cpm%28%29-required-to-avoid-driver-lockup-tp32088424p32088424.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
next reply other threads:[~2011-07-19 5:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 5:39 Daniel Ng2 [this message]
2011-07-19 18:24 ` setbat() in udbg_init_cpm() required to avoid driver lockup Scott Wood
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=32088424.post@talk.nabble.com \
--to=daniel.ng1234@gmail.com \
--cc=linuxppc-dev@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).